aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoc13x <roc13x@gmail.com>2013-02-15 12:29:34 +0000
committerRoc13x <roc13x@gmail.com>2013-02-15 12:29:34 +0000
commit0267b5381396a1de48026cd1808999ef545d309f (patch)
tree1b4f8b2c262d8ed83c85180cd896ae72d2b06477 /src
parent45363b8216f03f2dd4ce21cfb5ce183560374dd8 (diff)
Core/Items: Fix logic in Player::AddItem
Should send client the amount it gave you, not the amount it couldn't give you
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Player/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index bdf3f1780d2..c7c88ae0bbe 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -25484,7 +25484,7 @@ bool Player::AddItem(uint32 itemId, uint32 count)
ItemPosCountVec dest;
InventoryResult msg = CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, count, &noSpaceForCount);
if (msg != EQUIP_ERR_OK)
- count = noSpaceForCount;
+ count -= noSpaceForCount;
if (count == 0 || dest.empty())
{