Earlyports fix for inavtive vr pod traps

Fixes inactive vr pods trapping the occupant due to a runtime error preventing the code from releasing the occupant.
This commit is contained in:
Verkister
2022-01-08 17:15:24 +02:00
committed by GitHub
parent ac0667cb0f
commit 20d51c7d61
@@ -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)