mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-26 15:31:03 +00:00
DirectorInfo::update_positions: fix player index out of bounds if all players are spectating
This commit is contained in:
parent
efd0170856
commit
057001a66f
1 changed files with 6 additions and 0 deletions
|
|
@ -212,6 +212,12 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
if (playerstat[0].sorted == -1)
|
||||
{
|
||||
maxdist = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
maxdist = P_ScaleFromMap(players[playerstat[0].sorted].distancetofinish, FRACUNIT);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue