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.

pull/25/head
Perttu Ahola 2011-12-01 00:07:21 +02:00
parent f6c6c4f917
commit d8d6d0dc95
1 changed files with 0 additions and 1 deletions

View File

@ -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)