From 4d9e26acbbcdde0b296f4169f683a5d30c9de157 Mon Sep 17 00:00:00 2001 From: adamsong Date: Wed, 20 Sep 2023 02:29:26 -0400 Subject: [PATCH] Fixes 'Convert to Traitor' button --- code/modules/antagonists/brother/brother.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/modules/antagonists/brother/brother.dm b/code/modules/antagonists/brother/brother.dm index 53d34e0adbea..150ab7f8b5b3 100644 --- a/code/modules/antagonists/brother/brother.dm +++ b/code/modules/antagonists/brother/brother.dm @@ -138,17 +138,15 @@ var/datum/antagonist/traitor/tot = new() tot.give_objectives = FALSE - for(var/datum/objective/obj in objectives) + for(var/datum/objective/obj in team.objectives) var/obj_type = obj.type var/datum/objective/new_obj = new obj_type() new_obj.owner = owner new_obj.copy_target(obj) tot.add_objective(new_obj) - qdel(obj) - objectives.Cut() - owner.add_antag_datum(tot) owner.remove_antag_datum(/datum/antagonist/brother) + owner.add_antag_datum(tot) /datum/antagonist/brother/proc/give_pinpointer() if(owner && owner.current)