mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
BuryCorpsesInInstance converted to QueryDatabase
This commit is contained in:
parent
e1b251ee8f
commit
c055b20b93
@ -2435,15 +2435,9 @@ bool Database::CheckInstanceExists(uint16 instance_id)
|
||||
|
||||
void Database::BuryCorpsesInInstance(uint16 instance_id)
|
||||
{
|
||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
||||
char *query = 0;
|
||||
MYSQL_RES *result;
|
||||
char *query = nullptr;
|
||||
|
||||
if(RunQuery(query, MakeAnyLenString(&query, "UPDATE player_corpses SET IsBurried=1, instanceid=0 WHERE instanceid=%u",
|
||||
instance_id), errbuf, &result))
|
||||
{
|
||||
mysql_free_result(result);
|
||||
}
|
||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "UPDATE player_corpses SET IsBurried=1, instanceid=0 WHERE instanceid=%u", instance_id));
|
||||
safe_delete_array(query);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user