mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 05:31:29 +00:00
Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version.
This commit is contained in:
parent
6283e552d4
commit
b648d6f17b
1 changed files with 4 additions and 0 deletions
|
@ -1119,6 +1119,10 @@ void CL_InitUI( void ) {
|
|||
VM_Call( uivm, UI_INIT, (clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE));
|
||||
}
|
||||
else if (v != UI_API_VERSION) {
|
||||
// Free uivm now, so UI_SHUTDOWN doesn't get called later.
|
||||
VM_Free( uivm );
|
||||
uivm = NULL;
|
||||
|
||||
Com_Error( ERR_DROP, "User Interface is version %d, expected %d", v, UI_API_VERSION );
|
||||
cls.uiStarted = qfalse;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue