diff options
| author | Baoulettes <perlouzerie@hotmail.fr> | 2022-05-20 15:07:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-20 15:07:15 +0200 |
| commit | c0cd3b54006f63cab7600a6db7779b8958b7064a (patch) | |
| tree | 0072aec2aa6f78f17c240e5508bdfe23b50feaef | |
| parent | 49e15d342d2cd4f6ba89fff79feff51c21839107 (diff) | |
Changing int type
| -rw-r--r-- | libultraship/libultraship/SohImGuiImpl.cpp | 10 |
1 files 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)) { |
