Fix crash in Player::_saveInventory().

Fixes issue #1175

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-03-19 13:36:54 +01:00
parent 34d7e1fed9
commit 1146c59f66
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -17494,7 +17494,7 @@ void Player::_SaveInventory()
// Item could be deleted, or traded.
// In the first case, DeleteRefundDataFromDB() was already called in Item::SaveToDB()
Item* iPtr = (*itr);
if (!iPtr || iPtr->GetOwner() != this)
if (!iPtr)
m_refundableItems.erase(itr++);
else
{