Fix query in ObjectAccessor::ConvertCorpseForPlayer
Thanks to tru.bazoozoo and daibo411 --HG-- branch : trunk
This commit is contained in:
@@ -295,9 +295,9 @@ Corpse* ObjectAccessor::ConvertCorpseForPlayer(uint64 player_guid, bool /*insign
|
|||||||
// map->Remove(corpse, false);
|
// map->Remove(corpse, false);
|
||||||
|
|
||||||
// remove corpse from DB
|
// remove corpse from DB
|
||||||
SQLTransaction trans = WorldDatabase.BeginTransaction();
|
SQLTransaction trans = Character.BeginTransaction();
|
||||||
corpse->DeleteFromDB(trans);
|
corpse->DeleteFromDB(trans);
|
||||||
WorldDatabase.CommitTransaction(trans);
|
Character.CommitTransaction(trans);
|
||||||
|
|
||||||
// we don't want bones to save some cpu.. :)
|
// we don't want bones to save some cpu.. :)
|
||||||
delete corpse;
|
delete corpse;
|
||||||
|
|||||||
Reference in New Issue
Block a user