Do not assert if count becomes larger than getStackMax() in InventoryItem::add()...
authorPerttu Ahola <celeron55@gmail.com>
Wed, 30 Nov 2011 22:07:21 +0000 (00:07 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 30 Nov 2011 22:07:21 +0000 (00:07 +0200)
src/inventory.h

index cee81a21e629f1cca77da69f36bc70437e96bacc..a303fa0de1ec77688333e8b29b88d5bff53a0c0e 100644 (file)
@@ -95,7 +95,6 @@ public:
 
        void add(u16 count)
        {
-               assert(m_count + count <= getStackMax());
                m_count += count;
        }
        void remove(u16 count)