diff options
author | click <none@none> | 2010-05-03 16:30:53 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-03 16:30:53 +0200 |
commit | 9fbdcbb706d51ee696e453d311da6bdad515731d (patch) | |
tree | 9998977a81fe3e66a0ce87a85de9ddfb9979d11b /src/game/Player.cpp | |
parent | 2c31b77129cb74f28a1fde8927c6d49d49f8c1c7 (diff) |
Revert parts of a previous transaction-fix (would create a nested transaction), add missing support for rollback in battleground-group creation
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 9e6c1fa6a06..8f151296196 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17542,11 +17542,12 @@ void Player::SaveToDB() if (m_session->isLogingOut() || !sWorld.getConfig(CONFIG_STATS_SAVE_ONLY_ON_LOGOUT)) _SaveStats(); + CharacterDatabase.CommitTransaction(); + // save pet (hunter pet level and experience and all type pets health/mana). if (Pet* pet = GetPet()) pet->SavePetToDB(PET_SAVE_AS_CURRENT); - CharacterDatabase.CommitTransaction(); } // fast save function for item/money cheating preventing - save only inventory and money state |