1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 23:05:07 -05:00

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.

This commit is contained in:
Perttu Ahola 2011-12-01 00:07:21 +02:00
parent f6c6c4f917
commit d8d6d0dc95

View File

@ -95,7 +95,6 @@ public:
void add(u16 count)
{
assert(m_count + count <= getStackMax());
m_count += count;
}
void remove(u16 count)