From 42bac361dfcb42e565f36f9fe17a0bf2ba9ce6a8 Mon Sep 17 00:00:00 2001 From: tralezab <40974010+tralezab@users.noreply.github.com> Date: Sun, 19 Jul 2020 23:59:37 -0700 Subject: [PATCH] Mafia Landmarks are cleaned up at the end of the game (#52297) * Seven billion people Instantly enlightened Everyone's rebranded All the fighting's over * confrimed it works --- code/modules/mafia/controller.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mafia/controller.dm b/code/modules/mafia/controller.dm index 1e6ad963d35..ef21bc7f512 100644 --- a/code/modules/mafia/controller.dm +++ b/code/modules/mafia/controller.dm @@ -326,6 +326,9 @@ QDEL_LIST(all_roles) turn = 0 votes = list() + //map gen does not deal with landmarks + QDEL_LIST(landmarks) + QDEL_NULL(town_center_landmark) phase = MAFIA_PHASE_SETUP /** @@ -573,9 +576,6 @@ basic_setup() if("nuke") end_game() - for(var/i in landmarks) - qdel(i) - qdel(town_center_landmark) qdel(src) if("next_phase") var/datum/timedevent/timer = SStimer.timer_id_dict[next_phase_timer]