diff options
author | click <none@none> | 2010-05-02 22:34:49 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-02 22:34:49 +0200 |
commit | e4ef76a505cf1e689560231daddd4d37ec884318 (patch) | |
tree | 24c5584e4a7a9a543fb671ed0f6e870fa77da459 /src/game/Player.cpp | |
parent | 0a4d79ef390460b17e95bbc6e8de9ad34114e713 (diff) |
Include petsaving under transactioncontrol in Player::SaveToDB()
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 04c7a14419d..9e6c1fa6a06 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17537,8 +17537,6 @@ void Player::SaveToDB() GetSession()->SaveTutorialsData(); // changed only while character in game _SaveGlyphs(); - CharacterDatabase.CommitTransaction(); - // check if stats should only be saved on logout // save stats can be out of transaction if (m_session->isLogingOut() || !sWorld.getConfig(CONFIG_STATS_SAVE_ONLY_ON_LOGOUT)) @@ -17547,6 +17545,8 @@ void Player::SaveToDB() // 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 |