mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:09:16 +00:00
RangeManager: Fix off-by-one bounds check in GetLosRevealWholeMap()
This commit is contained in:
1 parent
3836f4ea8e
commit
4d721fdab2
1 file changed
+1
-1
@@ -2140,7 +2140,7 @@ public:
|
||||
if (m_LosRevealWholeMapForAll || player == -1)
|
||||
return true;
|
||||
|
||||
ENSURE(player >= 0 && player <= MAX_LOS_PLAYER_ID+1);
|
||||
ENSURE(player >= 0 && player < MAX_LOS_PLAYER_ID+1);
|
||||
if (m_LosRevealWholeMap[player])
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user