Fix problems with no stack limit.

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-09-22 01:52:16 +02:00
parent 9e5c8db01f
commit d3c402fa18
2 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -9346,7 +9346,7 @@ uint8 Player::_CanTakeMoreSimilarItems(uint32 entry, uint32 count, Item* pItem,
}
// no maximum
if(pProto->MaxCount <= 0)
if(pProto->MaxCount <= 0 || pProto->MaxCount == 2147483647)
return EQUIP_ERR_OK;
uint32 curcount = GetItemCount(pProto->ItemId,true,pItem);