mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-19 20:02:25 +00:00
ClearAllGroupLeaders converted to StringFormat
This commit is contained in:
parent
e3d02cdf40
commit
b7fb8fa434
@ -1781,9 +1781,8 @@ char *Database::GetGroupLeadershipInfo(uint32 gid, char* leaderbuf, char* mainta
|
||||
// Clearing all group leaders
|
||||
void Database::ClearAllGroupLeaders(void)
|
||||
{
|
||||
char *query = nullptr;
|
||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "DELETE from group_leaders"));
|
||||
safe_delete_array(query);
|
||||
std::string query("DELETE from group_leaders");
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
if (!results.Success())
|
||||
std::cout << "Unable to clear group leaders: " << results.ErrorMessage() << std::endl;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user