1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Renamed getUpgradeInfo -> fillUpgradeInfo

This commit is contained in:
Ivan Savenko
2022-12-25 14:03:43 +02:00
parent eb20a4b208
commit 405b2976d5
9 changed files with 23 additions and 23 deletions

View File

@ -3717,7 +3717,7 @@ bool CGameHandler::upgradeCreature(ObjectInstanceID objid, SlotID pos, CreatureI
COMPLAIN_RET("Cannot upgrade, no stack at slot " + boost::to_string(pos));
}
UpgradeInfo ui;
getUpgradeInfo(obj, pos, ui);
fillUpgradeInfo(obj, pos, ui);
PlayerColor player = obj->tempOwner;
const PlayerState *p = getPlayerState(player);
int crQuantity = obj->stacks.at(pos)->count;