Fix "typo" in previous commit (codingstyle)

--HG--
branch : trunk
This commit is contained in:
click
2010-11-07 20:12:36 +01:00
parent 5d4f009a87
commit 7853a06912
+2 -1
View File
@@ -11992,7 +11992,8 @@ void Player::DestroyItem(uint8 bag, uint8 slot, bool update)
sLog.outDebug("STORAGE: DestroyItem bag = %u, slot = %u, item = %u", bag, slot, pItem->GetEntry()); sLog.outDebug("STORAGE: DestroyItem bag = %u, slot = %u, item = %u", bag, slot, pItem->GetEntry());
// Also remove all contained items if the item is a bag. // Also remove all contained items if the item is a bag.
// This if() prevents item saving crashes if the condition for a bag to be empty before being destroyed was bypassed somehow. // This if() prevents item saving crashes if the condition for a bag to be empty before being destroyed was bypassed somehow.
if (pItem->IsBag() && !((Bag*)pItem)->IsEmpty()) { if (pItem->IsBag() && !((Bag*)pItem)->IsEmpty())
{
for (uint8 i = 0; i < MAX_BAG_SIZE; ++i) for (uint8 i = 0; i < MAX_BAG_SIZE; ++i)
DestroyItem(slot, i, update); DestroyItem(slot, i, update);
} }