Merge pull request #35804 from DaedalusGame/ghost-rolling

Fixes ghost role spawners still showing up in the spawner menu even if they're deleted
This commit is contained in:
Jordan Brown
2018-02-19 16:18:38 -05:00
committed by CitadelStationBot
parent fef23bd7cc
commit ff0f8189c5
+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)