mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01: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:
parent
f6c6c4f917
commit
d8d6d0dc95
@ -95,7 +95,6 @@ public:
|
||||
|
||||
void add(u16 count)
|
||||
{
|
||||
assert(m_count + count <= getStackMax());
|
||||
m_count += count;
|
||||
}
|
||||
void remove(u16 count)
|
||||
|
Loading…
Reference in New Issue
Block a user