From 8cb0834782993e75c21f5a8ffc071d5168d5df3e Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 6 Feb 2015 04:24:25 +0000 Subject: [PATCH] hopefully fix crash-on-shutdown of the ODE plugin. Make sure there's no active contexts before the ode dll is unloaded. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4836 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/com_phys_ode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/com_phys_ode.c b/engine/common/com_phys_ode.c index ab2bbb85a..e7b13f251 100644 --- a/engine/common/com_phys_ode.c +++ b/engine/common/com_phys_ode.c @@ -2779,9 +2779,9 @@ static void World_ODE_RunCmd(world_t *world, rbecommandqueue_t *cmd) static qintptr_t QDECL Plug_ODE_Shutdown(qintptr_t *args) { - World_ODE_Shutdown(); if (modfuncs) modfuncs->UnregisterPhysicsEngine("ODE"); + World_ODE_Shutdown(); return 0; }