forked from Mirrorlandia_minetest/minetest
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:
parent
f6c6c4f917
commit
d8d6d0dc95
@ -95,7 +95,6 @@ public:
|
|||||||
|
|
||||||
void add(u16 count)
|
void add(u16 count)
|
||||||
{
|
{
|
||||||
assert(m_count + count <= getStackMax());
|
|
||||||
m_count += count;
|
m_count += count;
|
||||||
}
|
}
|
||||||
void remove(u16 count)
|
void remove(u16 count)
|
||||||
|
Loading…
Reference in New Issue
Block a user