diff options
author | Shauren <none@none> | 2010-10-09 18:07:27 +0200 |
---|---|---|
committer | Shauren <none@none> | 2010-10-09 18:07:27 +0200 |
commit | 063e89d07d3905d03729dc6163ecc7690668d3f6 (patch) | |
tree | a5c06c27504c52faedf8070b3d4da04419d30b5d /src | |
parent | 91a97c7b831650c4a874f8fca29f57e89376991a (diff) |
Core/Guild: Fixed crash when unstacking items in guild bank
Closes issue #4360.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Item/Item.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp index 3dea6a61958..8dcce98c040 100755 --- a/src/server/game/Entities/Item/Item.cpp +++ b/src/server/game/Entities/Item/Item.cpp @@ -1060,7 +1060,9 @@ Item* Item::CloneItem(uint32 count, Player const* player) const newItem->SetUInt32Value(ITEM_FIELD_GIFTCREATOR, GetUInt32Value(ITEM_FIELD_GIFTCREATOR)); newItem->SetUInt32Value(ITEM_FIELD_FLAGS, GetUInt32Value(ITEM_FIELD_FLAGS)); newItem->SetUInt32Value(ITEM_FIELD_DURATION, GetUInt32Value(ITEM_FIELD_DURATION)); - newItem->SetItemRandomProperties(GetItemRandomPropertyId()); + // player CAN be NULL in which case we must not update random properties because that accesses player's item update queue + if (player) + newItem->SetItemRandomProperties(GetItemRandomPropertyId()); return newItem; } |