aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-02-16 20:50:52 +0000
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-02-16 23:29:54 +0100
commit19ea9260c1a7e60fe3f31c50bf12656e334cd891 (patch)
tree97e14039e6612e63d35c4a367ddc714a9e5ed5ce /Northstar.Client/mod
parent75476193d30acfbe6b0d21d0a5479f8dffb706c0 (diff)
downloadNorthstarMods-19ea9260c1a7e60fe3f31c50bf12656e334cd891.tar.gz
NorthstarMods-19ea9260c1a7e60fe3f31c50bf12656e334cd891.zip
check validity of viewentity before checking if it's local
Diffstat (limited to 'Northstar.Client/mod')
-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 b1b97bc9..6d446654 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 )