From: divverent Date: Thu, 22 Oct 2009 08:59:35 +0000 (+0000) Subject: fix warning X-Git-Tag: xonotic-v0.1.0preview~1256 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=baa2af31b61b0a2e14f3f134c807336d401277dc;p=xonotic%2Fdarkplaces.git fix warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9382 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);