Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #836 from roc13x/master
Browse files Browse the repository at this point in the history
Core/Items: fix AddItem logic derp
  • Loading branch information
Bootz committed Feb 15, 2013
2 parents 5d90819 + c31fa5e commit 2cfc1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26094,7 +26094,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())
{
Expand Down

0 comments on commit 2cfc1a5

Please sign in to comment.