aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDrahy <none@none>2009-06-27 17:29:12 +0200
committerDrahy <none@none>2009-06-27 17:29:12 +0200
commit548f857d97ff4259c6d5aa94866864cfb3b53eb2 (patch)
treee5ccb53d56f38163c653cdd3e6135125a865c18e /src
parentab7e83a72c7da17541e7d87b087ce8693d8b301d (diff)
*Fix crash in AV
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 9a8345b67e9..7f3d173015f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17800,6 +17800,7 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
sLog.outDebug("CHEATING ATTEMPT slot > bagSize in BuyItemFromVendor playerGUID: "I64FMT" name: %s slot: %u", GetGUID(), GetName(), slot);
return false;
}
+ if(slot < pBag->GetBagSlot() && !pBag->GetItemByPos(slot))
bag = i;
break;
}