]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add a missing VectorClear
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Oct 2009 12:30:31 +0000 (12:30 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 Oct 2009 12:30:31 +0000 (12:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9394 d7cf8633-e32d-0410-b094-e92efae38249

world.c

diff --git a/world.c b/world.c
index 73508152dba73a5297dfb11e0d41ac3aeef2afcf..779fc77aefecc14bd6a8316226d151f8f8c75462 100644 (file)
--- a/world.c
+++ b/world.c
@@ -1739,6 +1739,7 @@ static void World_Physics_Frame_JointFromEntity(world_t *world, prvm_edict_t *ed
        VectorClear(origin);
        VectorClear(velocity);
        VectorClear(angles);
+       VectorClear(movedir);
        val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.movetype);if (val) movetype = (int)val->_float;
        val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.jointtype);if (val) jointtype = (int)val->_float;
        val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.enemy);if (val) enemy = val->_int;