diff options
| author | megamage <none@none> | 2009-06-19 17:01:45 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-19 17:01:45 -0500 |
| commit | 07c59aeff5ecdfdfa7c07de123826882477d6098 (patch) | |
| tree | c5430360d90eb52bde7720cbb0b047f570962adf /src | |
| parent | 76049024f4ee5515e6da63a07c6c91abd2017867 (diff) | |
*Fix a crash caused by item
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |
