From 17fb8e7957cb07de44709220f16d1eac5cd40bb0 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sat, 8 Jan 2022 16:18:35 +0200 Subject: [PATCH] Fixes unpowered vr pods trapping occupant Lack of avatar here meant a runtime that would block the pod from ever reaching the part where the occupant actually gets released. --- code/game/machinery/virtual_reality/vr_console.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/virtual_reality/vr_console.dm b/code/game/machinery/virtual_reality/vr_console.dm index f0680c5faf..9414c9720b 100644 --- a/code/game/machinery/virtual_reality/vr_console.dm +++ b/code/game/machinery/virtual_reality/vr_console.dm @@ -185,7 +185,8 @@ if(!forced && avatar && alert(avatar, "Someone wants to remove you from virtual reality. Do you want to leave?", "Leave VR?", "Yes", "No") == "No") return - avatar.exit_vr() + if(avatar) + avatar.exit_vr() avatar = null if(occupant.client)