diff --git a/code/__HELPERS/roundend.dm b/code/__HELPERS/roundend.dm index cec522e0e0f..a3502d425f8 100644 --- a/code/__HELPERS/roundend.dm +++ b/code/__HELPERS/roundend.dm @@ -189,10 +189,8 @@ if(human_mob.mind && (human_mob.mind.special_role || length(human_mob.mind.antag_datums) > 0)) var/didthegamerwin = TRUE - for(var/a in human_mob.mind.antag_datums) - var/datum/antagonist/antag_datum = a - for(var/i in antag_datum.objectives) - var/datum/objective/objective_datum = i + for(var/datum/antagonist/antag_datums as anything in human_mob.mind.antag_datums) + for(var/datum/objective/objective_datum as anything in antag_datums.objectives) if(!objective_datum.check_completion()) didthegamerwin = FALSE if(!didthegamerwin) diff --git a/code/modules/antagonists/traitor/datum_traitor.dm b/code/modules/antagonists/traitor/datum_traitor.dm index e51b5691a1b..7700b9519bf 100644 --- a/code/modules/antagonists/traitor/datum_traitor.dm +++ b/code/modules/antagonists/traitor/datum_traitor.dm @@ -107,7 +107,7 @@ // for(in...to) loops iterate inclusively, so to reach objective_limit we need to loop to objective_limit - 1 // This does not give them 1 fewer objectives than intended. for(var/i in objective_count to objective_limit - 1) - objectives += forge_single_generic_objective() + forge_single_generic_objective() /**