Core/Items: Proper money refund fix for 0ad2c90d22. Thanks to Destalker
This commit is contained in:
@@ -24429,11 +24429,11 @@ void Player::RefundItem(Item *item)
|
||||
}
|
||||
GetSession()->SendPacket(&data);
|
||||
|
||||
uint32 moneyRefund = item->GetPaidMoney(); // item-> will be invalidated in DestroyItem
|
||||
|
||||
// Delete any references to the refund data
|
||||
item->SetNotRefundable(this);
|
||||
|
||||
uint32 moneyRefund = item->GetPaidMoney(); // item-> will be invalidated in DestroyItem
|
||||
|
||||
// Destroy item
|
||||
DestroyItem(item->GetBagSlot(), item->GetSlot(), true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user