diff options
Diffstat (limited to 'src/client/cl_ui.c')
-rw-r--r-- | src/client/cl_ui.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |