Fix Runtime in observer_vr.dm,65: Cannot read null.name

If an observer/ghost was never in the game this round, thier mind var
will be null.  No sense in letting them ping the transcore.
This commit is contained in:
Leshana
2020-02-23 22:52:42 -05:00
parent a5af2759e3
commit 82603a4978
@@ -62,7 +62,7 @@
set name = "Notify Transcore"
set desc = "If your past-due backup notification was missed or ignored, you can use this to send a new one."
if(src.mind.name in SStranscore.backed_up)
if(src.mind && src.mind.name in SStranscore.backed_up)
var/datum/transhuman/mind_record/record = SStranscore.backed_up[src.mind.name]
if(!(record.dead_state == MR_DEAD))
to_chat(src, "<span class='warning'>Your backup is not past-due yet.</span>")