mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Stacks of armed instance are now unique_ptr
This commit is contained in:
@ -227,12 +227,12 @@ ResourceSet NewTurnProcessor::generatePlayerIncome(PlayerColor playerID, bool ne
|
||||
{
|
||||
bool hasCrystalGenCreature = false;
|
||||
for (const auto & hero : state.getHeroes())
|
||||
for(auto stack : hero->stacks)
|
||||
for(const auto & stack : hero->stacks)
|
||||
if(stack.second->hasBonusOfType(BonusType::SPECIAL_CRYSTAL_GENERATION))
|
||||
hasCrystalGenCreature = true;
|
||||
|
||||
for(const auto & town : state.getTowns())
|
||||
for(auto stack : town->stacks)
|
||||
for(const auto & stack : town->stacks)
|
||||
if(stack.second->hasBonusOfType(BonusType::SPECIAL_CRYSTAL_GENERATION))
|
||||
hasCrystalGenCreature = true;
|
||||
|
||||
|
Reference in New Issue
Block a user