mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 12:21:34 +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)
|
void Database::BuryCorpsesInInstance(uint16 instance_id)
|
||||||
{
|
{
|
||||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
char *query = nullptr;
|
||||||
char *query = 0;
|
|
||||||
MYSQL_RES *result;
|
|
||||||
|
|
||||||
if(RunQuery(query, MakeAnyLenString(&query, "UPDATE player_corpses SET IsBurried=1, instanceid=0 WHERE instanceid=%u",
|
auto results = QueryDatabase(query, MakeAnyLenString(&query, "UPDATE player_corpses SET IsBurried=1, instanceid=0 WHERE instanceid=%u", instance_id));
|
||||||
instance_id), errbuf, &result))
|
|
||||||
{
|
|
||||||
mysql_free_result(result);
|
|
||||||
}
|
|
||||||
safe_delete_array(query);
|
safe_delete_array(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user