diff options
author | Machiavelli <none@none> | 2009-11-05 08:42:10 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2009-11-05 08:42:10 +0100 |
commit | a944217ede0bc2bf55ddd641a7dd75d3c7bd1a09 (patch) | |
tree | 0b8c7ca50df3d82fab2d308f9b4272f341096264 /src/game/Guild.cpp | |
parent | aa7ae0ebb0144737cd4ba15348bfce99e937ea6b (diff) |
Add an assert to trace down a crash, ref #68
--HG--
branch : trunk
Diffstat (limited to 'src/game/Guild.cpp')
-rw-r--r-- | src/game/Guild.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Guild.cpp b/src/game/Guild.cpp index 99f79b1738d..c53a51fb40d 100644 --- a/src/game/Guild.cpp +++ b/src/game/Guild.cpp @@ -1838,6 +1838,7 @@ uint8 Guild::_CanStoreItem_InSpecificSlot( uint8 tab, uint8 slot, GuildItemPosCo uint8 Guild::_CanStoreItem_InTab( uint8 tab, GuildItemPosCountVec &dest, uint32& count, bool merge, Item* pSrcItem, uint8 skip_slot ) const { + assert(pSrcItem); for (uint32 j = 0; j < GUILD_BANK_MAX_SLOTS; j++) { // skip specific slot already processed in first called _CanStoreItem_InSpecificSlot |