From 4d721fdab2be1b18833c8b70e63c1e6fd7e767f5 Mon Sep 17 00:00:00 2001 From: Fabio Pedretti Date: Sun, 23 Aug 2026 17:32:06 +0200 Subject: [PATCH] RangeManager: Fix off-by-one bounds check in GetLosRevealWholeMap() --- source/simulation2/components/CCmpRangeManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/simulation2/components/CCmpRangeManager.cpp b/source/simulation2/components/CCmpRangeManager.cpp index 7da92f5985..280c88365c 100644 --- a/source/simulation2/components/CCmpRangeManager.cpp +++ b/source/simulation2/components/CCmpRangeManager.cpp @@ -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;