]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two pointer bugs in ODE code
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 09:47:06 +0000 (09:47 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 09:47:06 +0000 (09:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9358 d7cf8633-e32d-0410-b094-e92efae38249

world.c

diff --git a/world.c b/world.c
index 9db8a11c41ac4a403411e14984342539e2ca3dad..e287c6b38efc14d675964ea96cb59b00b225e86a 100644 (file)
--- 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
        }