From a5e6d6cf46cb9b39c758de237221c99a7952963a Mon Sep 17 00:00:00 2001 From: NightDawnFox <116907157+NightDawnFox@users.noreply.github.com> Date: Mon, 11 Dec 2023 00:40:30 +0500 Subject: [PATCH] bugfix: fixing runtime after killing megafauna (Gain Patience) (#4039) --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 077564c8e3f..b3b080ca3c0 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -608,7 +608,7 @@ //These two procs handle losing our target if we've failed to attack them for //more than lose_patience_timeout deciseconds, which probably means we're stuck /mob/living/simple_animal/hostile/proc/GainPatience() - if(QDELING(src)) + if(QDELETED(src)) return if(lose_patience_timeout) LosePatience()