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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user