summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2011-11-03 03:52:46 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:13:57 +0000
commit0519d0c87ce0c68959034f0ceca82a40ef453874 (patch)
treedf95d475ed3fba0e4f77c5dc4373a46e0103e2e4 /src
parentf8c22a16fb74c01dfc14b7f9d20835c134d6c55e (diff)
Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version.
Diffstat (limited to 'src')
-rw-r--r--src/client/cl_ui.c4
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;
}