]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix warning
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Oct 2009 08:59:35 +0000 (08:59 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Oct 2009 08:59:35 +0000 (08:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9382 d7cf8633-e32d-0410-b094-e92efae38249

world.c

diff --git a/world.c b/world.c
index 7d03bb2c5b529db6493b1d4acfcfa6856a55e8bb..c2a9059a6ab991a64716fc63834e1fdff7df718c 100644 (file)
--- 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);