[NO GBP] Fixes an edge case with meteor moveloop code (#88229)

## About The Pull Request

This felt like an infinite delete trap so I've tested it and didn't find
anything but there's a couple of qdel loop traces in server logs, I
think this happens if something destroys the meteor?

## Changelog
🆑
fix: Fixed an edge case with meteor moveloop code
/🆑
This commit is contained in:
SmArtKar
2024-12-06 23:48:57 +01:00
committed by GitHub
parent e413f88bfb
commit 7c1539aa2b
+3
View File
@@ -45,6 +45,9 @@
/obj/effect/meteor/Destroy()
GLOB.meteor_list -= src
var/datum/move_loop/moveloop = GLOB.move_manager.processing_on(src, SSmovement)
if (!isnull(moveloop))
UnregisterSignal(moveloop, COMSIG_MOVELOOP_STOP)
return ..()
/obj/effect/meteor/Moved(atom/old_loc, movement_dir, forced, list/old_locs, momentum_change = TRUE)