From edfb79525d782ac04c819954ff99499b3a8f0f78 Mon Sep 17 00:00:00 2001 From: getBrainError Date: Thu, 2 Jun 2022 12:19:43 +0200 Subject: [PATCH] Update SohImGuiImpl.cpp Probably fixed linux build error --- libultraship/libultraship/SohImGuiImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index a85feba80..e9e0eaad7 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -540,7 +540,7 @@ namespace SohImGui { void EnhancementCombo(const std::string& name, const char* cvarName, std::vector items, int defaultValue) { if (ImGui::BeginCombo(name.c_str(), items[static_cast(CVar_GetS32(cvarName, defaultValue))].c_str())) { - for (int settingIndex = 0; settingIndex < items.size(); settingIndex++) { + for (int settingIndex = 0; settingIndex < (int) items.size(); settingIndex++) { if (ImGui::Selectable(items[settingIndex].c_str())) { CVar_SetS32(cvarName, settingIndex); needs_save = true;