From e6fb9a6b64b3ee3ace61209f745ddf6b08ddecff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Tue, 6 Jan 2026 22:10:04 +0000 Subject: [PATCH] mod_menu: fix overflow error (#6111) size_t is unsigned, `>= 0` is always true --- soh/soh/Enhancements/mod_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/mod_menu.cpp b/soh/soh/Enhancements/mod_menu.cpp index 23f525e85..37881202e 100644 --- a/soh/soh/Enhancements/mod_menu.cpp +++ b/soh/soh/Enhancements/mod_menu.cpp @@ -213,7 +213,7 @@ void DrawMods(bool enabled) { int switchToIndex = -1; uint32_t index = 0; - for (size_t i = selectedModFiles.size() - 1; i >= 0; i--) { + for (size_t i = selectedModFiles.size() - 1; i != SIZE_MAX; i--) { std::string file = selectedModFiles[i]; if (enabled) { ImGui::BeginGroup();