diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 57ab42128da..b66df6ce197 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -20232,7 +20232,7 @@ void Player::InitRunes() SetFloatValue(PLAYER_RUNE_REGEN_1 + i, 0.1f); } -void Player::AutoStoreLootItem(uint8 bag, uint8 slot, uint32 loot_id, LootStore const& store) +bool Player::AutoStoreLootItem(uint8 bag, uint8 slot, uint32 loot_id, LootStore const& store) { Loot loot; loot.FillLoot (loot_id,store,this); @@ -20249,7 +20249,8 @@ void Player::AutoStoreLootItem(uint8 bag, uint8 slot, uint32 loot_id, LootStore if(msg != EQUIP_ERR_OK) return; - StoreNewItem (dest,lootItem->itemid,true,lootItem->randomPropertyId); + if(Item* pItem = StoreNewItem (dest,lootItem->itemid,true,lootItem->randomPropertyId)) + SendNewItem(pItem, lootItem->count, true, true); } uint32 Player::CalculateTalentsPoints() const |