commit 3e63451df5b5d3f9f4019f19977e6b0b1ec10053
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Nov 12 16:48:05 2022 +0200
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Sat Nov 12 16:48:05 2022 +0200
strife: Fix integer overflow in A_RandomWalk
---
src/strife/p_enemy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c
index 2f44d2ec..5f572972 100644
--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -931,7 +931,7 @@ void A_RandomWalk(mobj_t* actor)
{
int delta;
- actor->angle &= (7 << 29);
+ actor->angle &= (7u << 29);
delta = actor->angle - (actor->movedir << 29);
if(delta < 0)