Some Projectile Code Cleanup (#22217)

Cleaning up some memory leaks due to projectiles. This one I've actually
made by hand.
This commit is contained in:
VMSolidus
2026-04-12 18:20:07 -04:00
committed by GitHub
parent 49467a332f
commit ba0bb16435
3 changed files with 15 additions and 2 deletions
+7 -2
View File
@@ -1048,8 +1048,13 @@
finalize_hitscan_and_generate_tracers()
STOP_PROCESSING(SSprojectiles, src)
cleanup_beam_segments()
if(trajectory)
QDEL_NULL(trajectory)
QDEL_NULL(trajectory)
firer = null
fired_from = null
original = null
starting = null
homing_target = null
impacted.Cut()
return ..()
/obj/projectile/proc/cleanup_beam_segments()