Skip to content

Commit

Permalink
clearing override behavior queue
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Jan 25, 2024
1 parent ad847d0 commit 6af53f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,10 @@
if(hardcore)
attack_log?.Cut() // Completely clear out attack_log to limit mem usage if we fail to delete

for(var/datum/component/ai_behavior_override/override in GLOB.all_ai_behavior_overrides)
if(override.currently_assigned)
override.currently_assigned -= src

. = ..()

// Everything below fits the "we have to clear by principle it but i dont wanna break stuff" bill
Expand Down

0 comments on commit 6af53f2

Please sign in to comment.