mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Replaced public artType member of ArtifactInstance with getter
This commit is contained in:
@@ -303,7 +303,7 @@ BattleInfo * BattleInfo::setupBattle(const int3 & tile, TerrainId terrain, const
|
||||
|
||||
if(nullptr != warMachineArt && hex.isValid())
|
||||
{
|
||||
CreatureID cre = warMachineArt->artType->getWarMachine();
|
||||
CreatureID cre = warMachineArt->getType()->getWarMachine();
|
||||
|
||||
if(cre != CreatureID::NONE)
|
||||
currentBattle->generateNewStack(currentBattle->nextUnitId(), CStackBasicDescriptor(cre, 1), side, SlotID::WAR_MACHINES_SLOT, hex);
|
||||
|
||||
Reference in New Issue
Block a user