aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkrz <none@none>2009-06-25 17:14:56 +0200
committerkrz <none@none>2009-06-25 17:14:56 +0200
commit8334693fe73f0d63f0738028a5a2365554ea97b3 (patch)
tree05db138ab1c7c8b90c5869abc2a7da200d33a83a /src
parentb8a1ffcf5022477402cea9bfee2b9ddcd830513e (diff)
Backported from TC2: *Fix typo causing problems with buying items.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 7e400be4cb0..525e1448ce8 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17131,9 +17131,9 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
{
// cheating attempt
if(count < 1) count = 1;
-
+
// cheating attempt
- if(slot > MAX_BAG_SIZE)
+ if(slot > MAX_BAG_SIZE && slot != NULL_SLOT)
return false;
if(!isAlive())