1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Minor tweak. Stables will now upgrade Cavaliers to Champions.

This commit is contained in:
DjWarmonger
2010-07-07 12:20:15 +00:00
parent d3c6270980
commit fb7771fcc2
2 changed files with 25 additions and 18 deletions

View File

@@ -1894,7 +1894,7 @@ void CGameHandler::giveCreatures (int objid, const CGHeroInstance * h, CCreature
if (creatures.stacksCount() <= 0)
return;
CCreatureSet heroArmy = h->getArmy();
while (creatures.stacksCount() > 0)
while (creatures.stacksCount())
{
int slot = heroArmy.getSlotFor(creatures.Slots().begin()->second.type->idNumber);
if (slot < 0)