Core/Items: Proper money refund fix for 0ad2c90d22. Thanks to Destalker

This commit is contained in:
Machiavelli
2011-01-25 13:36:40 +01:00
parent 17971acddb
commit 3d58165dbd
+2 -2
View File
@@ -24429,11 +24429,11 @@ void Player::RefundItem(Item *item)
} }
GetSession()->SendPacket(&data); GetSession()->SendPacket(&data);
uint32 moneyRefund = item->GetPaidMoney(); // item-> will be invalidated in DestroyItem
// Delete any references to the refund data // Delete any references to the refund data
item->SetNotRefundable(this); item->SetNotRefundable(this);
uint32 moneyRefund = item->GetPaidMoney(); // item-> will be invalidated in DestroyItem
// Destroy item // Destroy item
DestroyItem(item->GetBagSlot(), item->GetSlot(), true); DestroyItem(item->GetBagSlot(), item->GetSlot(), true);