diff options
| author | Machiavelli <none@none> | 2010-03-20 21:49:01 +0100 |
|---|---|---|
| committer | Machiavelli <none@none> | 2010-03-20 21:49:01 +0100 |
| commit | a0fd280a34b6e7c2c6bf3570d0420675222950ba (patch) | |
| tree | ba86cbdf1ad149e0e2d0b3e38148a9c810802f98 /src/game/Item.cpp | |
| parent | f7ffd77123b5f6c943f7d280fbea5742e2c5d9b9 (diff) | |
Memory optimization by making m_refundableItems a std::set<uint64>. Also fix a crash caused by invalid iterator in Player::_SaveInventory(). This should fix the last of the item save related crashes.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
| -rw-r--r-- | src/game/Item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index cc19585fcde..024e7138c13 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -1084,7 +1084,7 @@ void Item::SetNotRefundable(Player *owner, bool changestate) SetPaidExtendedCost(0); DeleteRefundDataFromDB(); - owner->DeleteRefundReference(this); + owner->DeleteRefundReference(GetGUID()); } void Item::UpdatePlayedTime(Player *owner) |
