Prevent A_LobShot from dividing by 0

This commit is contained in:
spherallic 2023-01-13 17:10:50 +01:00
parent 96bfd8cea7
commit 207053a023

View file

@ -2671,7 +2671,7 @@ void A_LobShot(mobj_t *actor)
fixed_t z;
fixed_t dist;
fixed_t vertical, horizontal;
fixed_t airtime = var2 & 65535;
fixed_t airtime = max(1, var2 & 65535);
if (LUA_CallAction(A_LOBSHOT, actor))
return;