mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 22:33:43 -07:00
Update SohImGuiImpl.cpp
Probably fixed linux build error
This commit is contained in:
parent
9ca276171e
commit
edfb79525d
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ namespace SohImGui {
|
|||
void EnhancementCombo(const std::string& name, const char* cvarName, std::vector<std::string> items, int defaultValue) {
|
||||
|
||||
if (ImGui::BeginCombo(name.c_str(), items[static_cast<int>(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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue