aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-02-16 20:50:52 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-02-16 20:50:52 +0000
commit4bba08f72314824df075387b3f8fb4450d192e5a (patch)
treeac9dc401cb3c5904ed92c910acfb0b602bc18daa /Northstar.Client
parentbca681c6e7b2b281a234d1ee9cbd671f97e45cb6 (diff)
downloadNorthstarMods-4bba08f72314824df075387b3f8fb4450d192e5a.tar.gz
NorthstarMods-4bba08f72314824df075387b3f8fb4450d192e5a.zip
check validity of viewentity before checking if it's local
Diffstat (limited to 'Northstar.Client')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut b/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut
index b1b97bc93..6d4466544 100644
--- a/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut
+++ b/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut
@@ -2531,7 +2531,7 @@
// setting menu camera while our viewentity isn't player will crash
// unfortunately no way to close menu if we get our viewentity set while menu is open atm
- while ( GetViewEntity().GetClassName() == "class C_BaseEntity" )
+ while ( IsValid( GetViewEntity() ) && GetViewEntity().GetClassName() == "class C_BaseEntity" )
WaitFrame()
if ( file.presentationTypeInitialized && presentationType == file.presentationType )