Skip to content

Commit c9bde35

Browse files
committed
fix deployment prioritization for alien bases
1 parent acd3274 commit c9bde35

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/Savegame/AlienMission.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,13 +637,13 @@ void AlienMission::spawnAlienBase(const Globe &globe, Game &engine, const Missio
637637
// Once the last UFO is spawned, the aliens build their base.
638638
const RuleRegion &regionRules = *ruleset.getRegion(_region);
639639
AlienDeployment *deployment;
640-
if (ruleset.getGlobe()->getTexture(area.texture) && !ruleset.getGlobe()->getTexture(area.texture)->getDeployments().empty())
640+
if (ruleset.getDeployment(_rule.getSiteType()))
641641
{
642-
deployment = ruleset.getDeployment(ruleset.getGlobe()->getTexture(area.texture)->getRandomDeployment());
642+
deployment = ruleset.getDeployment(_rule.getSiteType());
643643
}
644-
else if (ruleset.getDeployment(_rule.getSiteType()))
644+
else if (ruleset.getGlobe()->getTexture(area.texture) && !ruleset.getGlobe()->getTexture(area.texture)->getDeployments().empty())
645645
{
646-
deployment = ruleset.getDeployment(_rule.getSiteType());
646+
deployment = ruleset.getDeployment(ruleset.getGlobe()->getTexture(area.texture)->getRandomDeployment());
647647
}
648648
else
649649
{

0 commit comments

Comments
 (0)