diff --git a/src/p_enemy.c b/src/p_enemy.c index 373f09123..3305709fc 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -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;