From baa2af31b61b0a2e14f3f134c807336d401277dc Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 22 Oct 2009 08:59:35 +0000 Subject: [PATCH] fix warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9382 d7cf8633-e32d-0410-b094-e92efae38249 --- world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world.c b/world.c index 7d03bb2c..c2a9059a 100644 --- a/world.c +++ b/world.c @@ -1576,7 +1576,6 @@ void World_Physics_RemoveJointFromEntity(world_t *world, prvm_edict_t *ed) void World_Physics_RemoveFromEntity(world_t *world, prvm_edict_t *ed) { // entity is not physics controlled, free any physics data - prvm_edict_t *ed2; ed->priv.server->ode_physics = false; #ifdef USEODE if (ed->priv.server->ode_geom) @@ -1586,6 +1585,7 @@ void World_Physics_RemoveFromEntity(world_t *world, prvm_edict_t *ed) { dJointID j; dBodyID b1, b2; + prvm_edict_t *ed2; while(dBodyGetNumJoints((dBodyID)ed->priv.server->ode_body)) { j = dBodyGetJoint((dBodyID)ed->priv.server->ode_body, 0); -- 2.39.2