diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-29 02:13:26 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-29 02:13:26 +0000 |
commit | e8f67265e817bdca167fbb9970327588501be580 (patch) | |
tree | de1a5f60c67517263a294f94e397b7d78c5825fe /Northstar.CustomServers/mod/scripts/vscripts/_menu_callbacks.gnut | |
parent | bbdfd874e2f6a3ad1c72c123879bdc29299bc669 (diff) | |
download | NorthstarMods-e8f67265e817bdca167fbb9970327588501be580.tar.gz NorthstarMods-e8f67265e817bdca167fbb9970327588501be580.zip |
fix burnmeter and fastball crashes
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/_menu_callbacks.gnut')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_menu_callbacks.gnut | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_menu_callbacks.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_menu_callbacks.gnut index 1feefc2b2..02be47a43 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_menu_callbacks.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_menu_callbacks.gnut @@ -35,7 +35,8 @@ void function WritePersistenceAndLeaveForLocalPlayerOnly( entity player ) while ( GetPlayerArray().len() != 1 && Time() < time + 5.0 ) WaitFrame() - WritePersistenceAndLeave( player ) + if ( IsValid( player ) ) + WritePersistenceAndLeave( player ) } void function WritePersistenceAndLeave( entity player ) |