mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
PlayerState now stores all objects owned by player
This commit is contained in:
@@ -536,7 +536,7 @@ void CGameStateCampaign::initHeroes()
|
||||
}
|
||||
assert(humanPlayer != PlayerColor::NEUTRAL);
|
||||
|
||||
std::vector<ConstTransitivePtr<CGHeroInstance> > & heroes = gameState->players[humanPlayer].heroes;
|
||||
const auto & heroes = gameState->players[humanPlayer].getHeroes();
|
||||
|
||||
if (chosenBonus->info1 == 0xFFFD) //most powerful
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user