mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #7311 from Mechoid/FixTimingError
Fix timing error that allowed processing to reference a nulled list.
This commit is contained in:
@@ -441,15 +441,15 @@
|
||||
setAngle(Get_Angle(source, target))
|
||||
|
||||
/obj/item/projectile/Destroy()
|
||||
if(hitscan)
|
||||
finalize_hitscan_and_generate_tracers()
|
||||
STOP_PROCESSING(SSprojectiles, src)
|
||||
|
||||
if(impacted_mobs)
|
||||
if(LAZYLEN(impacted_mobs))
|
||||
impacted_mobs.Cut()
|
||||
impacted_mobs = null
|
||||
|
||||
if(hitscan)
|
||||
finalize_hitscan_and_generate_tracers()
|
||||
STOP_PROCESSING(SSprojectiles, src)
|
||||
qdel(trajectory)
|
||||
return ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user