Merge pull request #37562 from AutomaticFrenzy/patch/corpse-runtimes

Fix runtimes in corpse code due to mob_spawners becoming null
This commit is contained in:
Jordan Brown
2018-04-30 22:19:26 -04:00
committed by CitadelStationBot
parent 7205a15ef7
commit d9c368a2a4

View File

@@ -56,7 +56,7 @@
var/list/spawners = GLOB.mob_spawners[name]
LAZYREMOVE(spawners, src)
if(!LAZYLEN(spawners))
LAZYREMOVE(GLOB.mob_spawners,name)
GLOB.mob_spawners -= name
return ..()
/obj/effect/mob_spawn/proc/special(mob/M)