mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
[GBP NO UPDATE][READY FOR TM] Simplemob GC improvement (#19225)
* Properly clears a simplemob references on GC * We're going the whole mile here
This commit is contained in:
@@ -129,6 +129,8 @@
|
||||
AddComponent(/datum/component/footstep, footstep_type)
|
||||
|
||||
/mob/living/simple_animal/Destroy()
|
||||
/// We need to clear the reference to where we're walking to properly GC
|
||||
walk_to(src, 0)
|
||||
QDEL_NULL(pcollar)
|
||||
master_commander = null
|
||||
GLOB.simple_animals[AIStatus] -= src
|
||||
|
||||
Reference in New Issue
Block a user