From c0cd3b54006f63cab7600a6db7779b8958b7064a Mon Sep 17 00:00:00 2001 From: Baoulettes Date: Fri, 20 May 2022 15:07:15 +0200 Subject: [PATCH] Changing int type --- libultraship/libultraship/SohImGuiImpl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index 1986cc889..de3617334 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -390,14 +390,14 @@ namespace SohImGui { } } - void EnhancementCombobox(const char* name, const char* ComboArray[], s16 FirstTimeValue = -1){ - if (FirstTimeValue < 0){ + void EnhancementCombobox(const char* name, const char* ComboArray[], uint8_t FirstTimeValue = 0){ + if (FirstTimeValue <= 0){ FirstTimeValue = 0; } - s16 selected=CVar_GetS32(name, FirstTimeValue); - s16 DefaultValue=selected; + uint8_t selected=CVar_GetS32(name, FirstTimeValue); + uint8_t DefaultValue=selected; if (ImGui::BeginCombo("##name", ComboArray[DefaultValue])) { - s16 ComboxSize = sizeof(&ComboArray); + uint8_t ComboxSize = sizeof(&ComboArray); for (uint8_t i = 0; i <= ComboxSize; i++) { if (strlen(ComboArray[i]) > 1) { if (ImGui::Selectable(ComboArray[i], i==selected)) {