mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user