From 07c59aeff5ecdfdfa7c07de123826882477d6098 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 19 Jun 2009 17:01:45 -0500 Subject: *Fix a crash caused by item --HG-- branch : trunk --- src/game/Player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 288f2730605..063ec6956cc 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17793,7 +17793,8 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint { if( bagguid == pBag->GetGUID() ) { - bag = i; + if(slot < pBag->GetBagSlot() && !pBag->GetItemByPos(slot)) + bag = i; break; } } -- cgit v1.2.3