]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.c
add a missing VectorClear
[xonotic/darkplaces.git] / 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;