diff options
author | click <none@none> | 2010-05-05 17:59:56 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-05 17:59:56 +0200 |
commit | 64b0112382af47ead6e88c14bfe0fdf0fe3fd483 (patch) | |
tree | 12f5fbd6112100c11e15e40d78d4600f72408c7e /src | |
parent | 173d30879f73aa1a887ea6ae59f5bed9cc347400 (diff) |
Remove a nested transaction messing up character savestates - thanks to Zor for spotting the culprit
Fixes issue #2018. Fixes issue #2004.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 847c72af4c4..4a39401c956 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17783,10 +17783,8 @@ void Player::_SaveInventory() CharacterDatabase.PExecute("INSERT INTO character_inventory (guid,bag,slot,item,item_template) VALUES ('%u', '%u', '%u', '%u', '%u')", GetGUIDLow(), bag_guid, item->GetSlot(), item->GetGUIDLow(), item->GetEntry()); break; case ITEM_CHANGED: - CharacterDatabase.BeginTransaction(); CharacterDatabase.PExecute("DELETE FROM character_inventory WHERE item = '%u'", item->GetGUIDLow()); CharacterDatabase.PExecute("INSERT INTO character_inventory (guid,bag,slot,item,item_template) VALUES ('%u', '%u', '%u', '%u', '%u')", GetGUIDLow(), bag_guid, item->GetSlot(), item->GetGUIDLow(), item->GetEntry()); - CharacterDatabase.CommitTransaction(); break; case ITEM_REMOVED: CharacterDatabase.PExecute("DELETE FROM character_inventory WHERE item = '%u'", item->GetGUIDLow()); |