mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-17 02:47:58 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user