diff options
-rw-r--r-- | Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut index f64658cf..f5fae006 100644 --- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut +++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut @@ -31,6 +31,8 @@ void function FastballCreateRui( entity player ) void function ServerCallback_FastballUpdatePanelRui( int panelHandle, int id ) { entity panel = GetEntityFromEncodedEHandle( panelHandle ) + if (!IsValid(panel)) + return var rui if ( id == 0 ) rui = file.panelARui @@ -94,4 +96,4 @@ void function FastballRespawnPlayerEffects_Threaded() WaitFrame() StartParticleEffectOnEntity( player.GetCockpit(), GetParticleSystemIndex( $"P_pod_screen_lasers_OUT" ), FX_PATTACH_ABSORIGIN_FOLLOW, -1 ) -}
\ No newline at end of file +} |