mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Fixes immerse holding refs to qdeleted things (#85061)
## About The Pull Request Tin, should fix the following hard del and prevent similar instances:  There was nothing stopping something that was qdeleted from potentially being 'immersed' which is definitely not something that we ever want to be happening. ## Why It's Good For The Game Spurious CI failures are annoying ## Changelog Nothing player facing
This commit is contained in:
@@ -107,6 +107,8 @@
|
||||
*/
|
||||
/datum/element/immerse/proc/on_init_or_entered(turf/source, atom/movable/movable)
|
||||
SIGNAL_HANDLER
|
||||
if(QDELETED(movable))
|
||||
return
|
||||
if(HAS_TRAIT(movable, TRAIT_IMMERSED))
|
||||
return
|
||||
if(movable.layer >= ABOVE_ALL_MOB_LAYER || !ISINRANGE(movable.plane, MUTATE_PLANE(FLOOR_PLANE, source), MUTATE_PLANE(GAME_PLANE, source)))
|
||||
|
||||
Reference in New Issue
Block a user