Merge pull request #5597 from Citadel-Station-13/upstream-merge-35804

[MIRROR] Fixes ghost role spawners still showing up in the spawner menu even if they're deleted
This commit is contained in:
deathride58
2018-02-20 15:20:28 +00:00
committed by GitHub
+2
View File
@@ -54,6 +54,8 @@
GLOB.poi_list -= src
var/list/spawners = GLOB.mob_spawners[name]
LAZYREMOVE(spawners, src)
if(!LAZYLEN(spawners))
LAZYREMOVE(GLOB.mob_spawners,name)
return ..()
/obj/effect/mob_spawn/proc/special(mob/M)