Fix off-by-one in teleport validation

This commit is contained in:
Kp 2013-11-01 23:17:22 +00:00
parent 9dec31d801
commit babac8144a

View file

@ -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;