bj_SSHologramRotatorMapThingSpawn: Fix possible div/0

This commit is contained in:
toaster 2024-01-11 22:13:11 +00:00 committed by James R
parent a2c88952c5
commit f4abaabdd5

View file

@ -98,6 +98,12 @@ void Obj_SSHologramRotatorMapThingSpawn(mobj_t* mo, mapthing_t* mt)
token = next;
}
if (numStates == 0)
{
CONS_Alert(CONS_WARNING, "MT_HOLOGRAM_ROTATOR %d: stringarg 0 consists exclusively of unrecognised creatures\n", mt->tid);
return;
}
if (mt->thing_args[0])
{
speed = mt->thing_args[0];