Merge pull request #1142 from devnexen/fix_warning_hunt_target

AI, HuntTarget fix runtime warning.
This commit is contained in:
Yamagi 2024-08-18 15:37:14 +02:00 committed by GitHub
commit 730d5281fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -419,6 +419,10 @@ HuntTarget(edict_t *self)
{
VectorSubtract(self->enemy->s.origin, self->s.origin, vec);
}
else
{
VectorClear(vec);
}
self->ideal_yaw = vectoyaw(vec);