Merge pull request #7754 from deathride58/fixesghostrolesforreal

actually fixes ghost role spawners leaving null entries in mob_spawners
This commit is contained in:
nik707
2018-11-26 04:10:10 -06:00
committed by GitHub
+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)