mod_menu: fix overflow error (#6111)
size_t is unsigned, `>= 0` is always true
This commit is contained in:
@@ -213,7 +213,7 @@ void DrawMods(bool enabled) {
|
|||||||
int switchToIndex = -1;
|
int switchToIndex = -1;
|
||||||
uint32_t index = 0;
|
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];
|
std::string file = selectedModFiles[i];
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
ImGui::BeginGroup();
|
ImGui::BeginGroup();
|
||||||
|
|||||||
Reference in New Issue
Block a user