Do not assert if count becomes larger than getStackMax() in InventoryItem::add()...
authorPerttu Ahola <celeron55@gmail.com>
Wed, 30 Nov 2011 22:07:21 +0000 (00:07 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 30 Nov 2011 22:07:21 +0000 (00:07 +0200)
commitd8d6d0dc959c5f23f1892314ee0cf793395ce802
tree06a2d5634e1448415c3d3701078a7c12e38011e2
parentf6c6c4f9171ba0499cd549b5aac34100fd189f42
Do not assert if count becomes larger than getStackMax() in InventoryItem::add(); it is nicer for scripting and overall hacking this way, because rising it higher than the limit is does not break anything. It should be, and is, enforced elsewhere where appropriate.
src/inventory.h