Fixes orbiting runtimes caused by mind transfers (#90470)

## About The Pull Request
Orbiting component typechecked a knowingly null parent, which errored
and caused two runtimes for the price of one when you tried to transfer
a mob's mind while it had orbiters.

## Changelog
🆑
fix: Fixed mind transfers not transferring mob's observers to mind's new
mob.
/🆑
This commit is contained in:
SmArtKar
2025-04-08 16:29:43 +02:00
committed by Shadow-Quill
parent 3fd39646f7
commit 2d5099b96f

View File

@@ -57,7 +57,7 @@
newcomp.orbiter_list = null newcomp.orbiter_list = null
/datum/component/orbiter/PostTransfer(datum/new_parent) /datum/component/orbiter/PostTransfer(datum/new_parent)
if(!isatom(parent) || isarea(new_parent) || !get_turf(new_parent)) if(!isatom(new_parent) || isarea(new_parent) || !get_turf(new_parent))
return COMPONENT_INCOMPATIBLE return COMPONENT_INCOMPATIBLE
move_react(new_parent) move_react(new_parent)