浏览代码

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

DjWarmonger 16 年之前
父节点
当前提交
b05ebf7824
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
 	}