From: divverent Date: Tue, 20 Oct 2009 09:47:06 +0000 (+0000) Subject: fix two pointer bugs in ODE code X-Git-Tag: xonotic-v0.1.0preview~1278 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6914302f2f1a7c6849604ace4967e39bf32ff0e6;p=xonotic%2Fdarkplaces.git fix two pointer bugs in ODE code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9358 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/world.c b/world.c index 9db8a11c..e287c6b3 100644 --- a/world.c +++ b/world.c @@ -1442,7 +1442,7 @@ static void World_Physics_Init(void) # else Con_Printf("ode library not compiled for double precision - incompatible! Not using ODE physics.\n"); # endif - Sys_UnloadLibrary(ode_dll); + Sys_UnloadLibrary(&ode_dll); ode_dll = NULL; } #endif @@ -1459,7 +1459,7 @@ static void World_Physics_Shutdown(void) { dCloseODE(); #ifndef ODE_STATIC - Sys_UnloadLibrary(ode_dll); + Sys_UnloadLibrary(&ode_dll); ode_dll = NULL; #endif }