Fixes runtimes caused by energy bolas (#90469)

## About The Pull Request

Certain throw impact callbacks, like those on energy bolas, could cause
the object to get deleted, which would make throwing datums runtime
because they didn't account for it.

## Changelog
🆑
fix: Fixed runtimes caused by energy bolas
/🆑
This commit is contained in:
SmArtKar
2025-04-29 17:45:01 -06:00
committed by Shadow-Quill
parent 2d5099b96f
commit 81509f2e73
+3
View File
@@ -232,6 +232,9 @@ SUBSYSTEM_DEF(throwing)
if (callback)
callback.Invoke()
// Same can happen in the callback
if(QDELETED(thrownthing))
return
if(!thrownthing.currently_z_moving) // I don't think you can zfall while thrown but hey, just in case.
var/turf/T = get_turf(thrownthing)