[MIRROR] Fixes runtimes when admin ghosting out of a camera eye [MDB IGNORE] (#10488)

* Fixes runtimes when admin ghosting out of a camera eye (#63838)

observetarget is not guaranteed to exist

* Fixes runtimes when admin ghosting out of a camera eye

Co-authored-by: Seth Scherer <supernovaa41@gmx.com>
This commit is contained in:
SkyratBot
2022-01-07 12:42:54 +01:00
committed by GitHub
parent 5b683facb8
commit 4bcd964ae3
@@ -868,6 +868,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/dead/observer/proc/cleanup_observe()
if(isnull(observetarget))
return
var/mob/target = observetarget
observetarget = null
client?.perspective = initial(client.perspective)