Core/DBLayer: Prevent committing transactions started on a different database
This commit is contained in:
1 parent
d003ebd8e4
commit
47acc59f49
75 files changed
+406
-379
No files matched your search
@@ -605,7 +605,7 @@ public:
|
||||
handler->PSendSysMessage(LANG_SUMMONING, nameLink.c_str(), handler->GetTrinityString(LANG_OFFLINE));
|
||||
|
||||
// in point where GM stay
|
||||
SQLTransaction dummy;
|
||||
CharacterDatabaseTransaction dummy;
|
||||
Player::SavePositionInDB(WorldLocation(_player->GetMapId(),
|
||||
_player->GetPositionX(),
|
||||
_player->GetPositionY(),
|
||||
@@ -665,7 +665,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
SQLTransaction trans(nullptr);
|
||||
CharacterDatabaseTransaction trans(nullptr);
|
||||
Player::OfflineResurrect(targetGuid, trans);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user