From 857c21a378f143eb618667b0d7cf1863a7c177c3 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Sun, 18 Nov 2018 19:03:00 -0500 Subject: [PATCH] Fixes spawners with defined job descriptions causing the mob spawners list to fill up with null entries (makes spawner menu work again and properly removes ghost roles from latejoin menu when filled) (#7736) * Fixes the mob spawner list being filled with null entries. (Fixes spawner menu and stops latejoin menu from showing filled ghost roles) * oop hang on --- code/modules/awaymissions/corpse.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm index 01c319e042..afdbde128e 100644 --- a/code/modules/awaymissions/corpse.dm +++ b/code/modules/awaymissions/corpse.dm @@ -65,9 +65,8 @@ /obj/effect/mob_spawn/Destroy() GLOB.poi_list -= src - var/list/spawners = GLOB.mob_spawners[name] - LAZYREMOVE(spawners, src) - if(!LAZYLEN(spawners)) + LAZYREMOVE(GLOB.mob_spawners[name], src) + if(!LAZYLEN(GLOB.mob_spawners[name])) GLOB.mob_spawners -= name return ..()