From 548f857d97ff4259c6d5aa94866864cfb3b53eb2 Mon Sep 17 00:00:00 2001 From: Drahy Date: Sat, 27 Jun 2009 17:29:12 +0200 Subject: *Fix crash in AV --HG-- branch : trunk --- src/game/Player.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3