Explorar o código

Banks will now handle creature stacks with size of zero (as in Crypt).

DjWarmonger %!s(int64=16) %!d(string=hai) anos
pai
achega
b05ebf7824
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      int3.h

+ 2 - 0
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;
 	}