IOQ3 commit 2194

This commit is contained in:
Richard Allen 2012-01-13 17:06:59 +00:00
parent 3954517003
commit 417ec1d5a3

View file

@ -1120,6 +1120,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;
}