1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

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

This commit is contained in:
DjWarmonger
2009-10-03 14:22:03 +00:00
parent 913c0af6fa
commit b05ebf7824

2
int3.h
View File

@@ -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;
}