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
This commit is contained in:
Spoike 2015-02-06 04:24:25 +00:00
parent 23971df104
commit 8cb0834782
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}