]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.c
fix two pointer bugs in ODE code
[xonotic/darkplaces.git] / 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
        }