diff options
| author | click <none@none> | 2010-11-07 20:12:36 +0100 |
|---|---|---|
| committer | click <none@none> | 2010-11-07 20:12:36 +0100 |
| commit | 7853a06912496081e0a9ac610e3a97845c377656 (patch) | |
| tree | 866bba4015c800aece144ff9ebca9ccc7b8c1cb3 /src | |
| parent | 5d4f009a87f6fd187ad3a52c302d992d174a39aa (diff) | |
Fix "typo" in previous commit (codingstyle)
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Entities/Player/Player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index aaa3f51e37d..56c85871059 100755 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -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()); // 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. - if (pItem->IsBag() && !((Bag*)pItem)->IsEmpty()) { + if (pItem->IsBag() && !((Bag*)pItem)->IsEmpty()) + { for (uint8 i = 0; i < MAX_BAG_SIZE; ++i) DestroyItem(slot, i, update); } |
