summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-01 00:07:21 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-01 00:07:21 +0200
commitd8d6d0dc959c5f23f1892314ee0cf793395ce802 (patch)
tree06a2d5634e1448415c3d3701078a7c12e38011e2 /src/inventory.h
parentf6c6c4f9171ba0499cd549b5aac34100fd189f42 (diff)
downloadminetest-d8d6d0dc959c5f23f1892314ee0cf793395ce802.tar.gz
minetest-d8d6d0dc959c5f23f1892314ee0cf793395ce802.tar.bz2
minetest-d8d6d0dc959c5f23f1892314ee0cf793395ce802.zip
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.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/inventory.h b/src/inventory.h
index cee81a21e..a303fa0de 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -95,7 +95,6 @@ public:
void add(u16 count)
{
- assert(m_count + count <= getStackMax());
m_count += count;
}
void remove(u16 count)