From b05ebf782486bed7e2e3bda58bfd36b9ede1b3c3 Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Sat, 3 Oct 2009 14:22:03 +0000 Subject: [PATCH] Banks will now handle creature stacks with size of zero (as in Crypt). --- int3.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/int3.h b/int3.h index 80f56b896..6ec02b3a1 100644 --- a/int3.h +++ b/int3.h @@ -31,6 +31,8 @@ public: bool setCreature (TSlot slot, TCreature type, TQuantity quantity) //slots 0 to 6 { slots[slot] = TStack(type, quantity); //brutal force + if (quantity == 0) + slots.erase(slot); if (slots.size() > 7) return false; else return true; }