Skip to content

Commit

Permalink
backport yquake2 fix for HuntTarget unitialised vector
Browse files Browse the repository at this point in the history
devnexen committed Aug 18, 2024
1 parent 6fba354 commit 9fc912d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/g_ai.c
Original file line number Diff line number Diff line change
@@ -390,6 +390,10 @@ HuntTarget(edict_t *self)
{
VectorSubtract(self->enemy->s.origin, self->s.origin, vec);
}
else
{
VectorClear(vec);
}

self->ideal_yaw = vectoyaw(vec);

0 comments on commit 9fc912d

Please sign in to comment.