actually fixes ghost role spawners leaving null entries in mob_spawners

This commit is contained in:
deathride58
2018-11-20 22:24:47 -05:00
parent 59dc18d904
commit 73ae6badb6
+3 -3
View File
@@ -65,9 +65,9 @@
/obj/effect/mob_spawn/Destroy()
GLOB.poi_list -= src
LAZYREMOVE(GLOB.mob_spawners[name], src)
if(!LAZYLEN(GLOB.mob_spawners[name]))
GLOB.mob_spawners -= name
LAZYREMOVE(GLOB.mob_spawners[job_description ? job_description : name], src)
if(!LAZYLEN(GLOB.mob_spawners[job_description ? job_description : name]))
GLOB.mob_spawners -= job_description ? job_description : name
return ..()
/obj/effect/mob_spawn/proc/special(mob/M)