Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version.
This commit is contained in:
1 parent
6283e552d4
commit
b648d6f17b
1 file changed
+4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user