From: Perttu Ahola Date: Wed, 30 Nov 2011 22:07:21 +0000 (+0200) Subject: Do not assert if count becomes larger than getStackMax() in InventoryItem::add()... X-Git-Tag: 0.4.dev-20111201-0~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8d6d0dc959c5f23f1892314ee0cf793395ce802;p=oweals%2Fminetest.git 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. --- 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)