mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
Converted creature ID and spell ID to new form
This commit is contained in:
@@ -51,7 +51,7 @@ void BuyArmy::accept(AIGateway * ai)
|
||||
auto res = cb->getResourceAmount();
|
||||
auto & ci = armyToBuy[i];
|
||||
|
||||
if(objid != -1 && ci.creID != objid)
|
||||
if(objid != CreatureID::NONE && ci.creID.getNum() != objid)
|
||||
continue;
|
||||
|
||||
vstd::amin(ci.count, res / ci.cre->getFullRecruitCost());
|
||||
|
||||
Reference in New Issue
Block a user