mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 14:37:27 +01:00
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:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user