diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 61037fe4c77..8319e51b73d 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -200,10 +200,10 @@ /datum/game_mode/proc/generate_station_goals(greenshift) var/goal_budget = greenshift ? INFINITY : CONFIG_GET(number/station_goal_budget) var/list/possible = subtypesof(/datum/station_goal) + // Remove all goals that require space if space is not present if(SSmapping.is_planetary()) - for(var/datum/station_goal/goal in possible) - if(goal.requires_space) - ///Removes all goals that require space if space is not present + for(var/datum/station_goal/goal as anything in possible) + if(initial(goal.requires_space)) possible -= goal var/goal_weights = 0 while(possible.len && goal_weights < goal_budget)