Fix crash in Player::_saveInventory().
Fixes issue #1175 --HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user