Skip to content

Commit

Permalink
bugfix: fixing runtime after killing megafauna (Gain Patience) (#4039)
Browse files Browse the repository at this point in the history
  • Loading branch information
NightDawnFox authored Dec 10, 2023
1 parent 418267e commit a5e6d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hostile/hostile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a5e6d6c

Please sign in to comment.