From 22d2200fc149a8a36154cd0c3678c127bc9a9f7c Mon Sep 17 00:00:00 2001 From: Ghommie <42542238+Ghommie@users.noreply.github.com> Date: Thu, 21 May 2020 03:20:22 +0200 Subject: [PATCH] aaa --- .../code/modules/reagents/chemistry/reagents/astrogen.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modular_citadel/code/modules/reagents/chemistry/reagents/astrogen.dm b/modular_citadel/code/modules/reagents/chemistry/reagents/astrogen.dm index 4178584fdb..bdc599a5e2 100644 --- a/modular_citadel/code/modules/reagents/chemistry/reagents/astrogen.dm +++ b/modular_citadel/code/modules/reagents/chemistry/reagents/astrogen.dm @@ -100,8 +100,9 @@ I'd like to point out from my calculations it'll take about 60-80 minutes to die ..() /datum/reagent/fermi/astral/on_mob_delete(mob/living/carbon/M) - if(!(G.mind)) - qdel(G) + if(!(G?.mind)) + if(!G) + qdel(G) return ..() if(M.mind) //Just in case someone else is inside of you, it makes them a ghost and should hopefully bring them home at the end. var/mob/living/simple_animal/astral/G2 = new(get_turf(M))