Merge pull request #8364 from Verkister/patch-83

Fixes inactive vr pods trapping occupant
This commit is contained in:
Atermonera
2022-02-06 15:34:12 -05:00
committed by VirgoBot
parent 7716d7b4f9
commit aa4a5bd510
@@ -185,7 +185,8 @@
if(!forced && avatar && tgui_alert(avatar, "Someone wants to remove you from virtual reality. Do you want to leave?", "Leave VR?", list("Yes", "No")) == "No")
return
avatar.exit_vr()
if(avatar)
avatar.exit_vr()
avatar = null
if(occupant.client)