mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 21:12:13 +00:00
bj_SSHologramRotatorMapThingSpawn: Fix possible div/0
This commit is contained in:
parent
a2c88952c5
commit
f4abaabdd5
1 changed files with 6 additions and 0 deletions
|
|
@ -98,6 +98,12 @@ void Obj_SSHologramRotatorMapThingSpawn(mobj_t* mo, mapthing_t* mt)
|
||||||
token = next;
|
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])
|
if (mt->thing_args[0])
|
||||||
{
|
{
|
||||||
speed = mt->thing_args[0];
|
speed = mt->thing_args[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue