mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-16 17:02:28 +00:00
ClearRaid converted to StringFormat
This commit is contained in:
parent
3cf9c71c27
commit
71da40c757
@ -1829,8 +1829,7 @@ void Database::SetAgreementFlag(uint32 acctid)
|
||||
}
|
||||
|
||||
void Database::ClearRaid(uint32 rid) {
|
||||
char *query = nullptr;
|
||||
|
||||
|
||||
if(rid == 0)
|
||||
{
|
||||
//clear all raids
|
||||
@ -1839,8 +1838,8 @@ void Database::ClearRaid(uint32 rid) {
|
||||
}
|
||||
|
||||
//clear a specific group
|
||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "delete from raid_members where raidid = %lu", (unsigned long)rid));
|
||||
safe_delete_array(query);
|
||||
std::string query = StringFormat("delete from raid_members where raidid = %lu", (unsigned long)rid);
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
if (!results.Success())
|
||||
std::cout << "Unable to clear raids: " << results.ErrorMessage() << std::endl;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user