From 0519d0c87ce0c68959034f0ceca82a40ef453874 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 3 Nov 2011 03:52:46 +0000 Subject: Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version. --- src/client/cl_ui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index 35b8bbb6..6f631874 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -1107,6 +1107,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; } -- cgit