Fixes mobs runtiming on Destroy() on worldgen (#37673)

This commit is contained in:
Anthony "Shifty Rail
2025-06-05 13:35:08 +01:00
committed by GitHub
parent 45e70a9fb7
commit 811602c8e9

View File

@@ -27,7 +27,7 @@
if(addicted_chems)
QDEL_NULL(addicted_chems)
var/datum/gamemode/dynamic/dyn_mode = ticker.mode
var/datum/gamemode/dynamic/dyn_mode = ticker?.mode
if (istype(dyn_mode))
dyn_mode.living_players -= src