backport yquake2 fix for HuntTarget unitialised vector

This commit is contained in:
David Carlier 2024-08-18 14:40:53 +01:00
parent 6fba354e60
commit 9fc912dc01
No known key found for this signature in database
GPG key ID: CEF290BB40D2086B

View file

@ -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);