Fix off-by-one in teleport validation
This commit is contained in:
parent
9dec31d801
commit
babac8144a
|
@ -1024,7 +1024,7 @@ multi_do_boss_actions(const ubyte *buf)
|
|||
int teleport_segnum;
|
||||
vms_vector boss_dir;
|
||||
|
||||
if ((secondary < 0) || (secondary > Num_boss_teleport_segs))
|
||||
if ((secondary < 0) || (secondary >= Num_boss_teleport_segs))
|
||||
{
|
||||
Int3(); // Bad segnum for boss teleport, ROB!!
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue