mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
Item Tracker Combo Button Fix (#3231)
* let words be small * change >=1 to >0
This commit is contained in:
parent
82d87ff680
commit
b1f0c964d2
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ namespace UIWidgets {
|
|||
std::string comboName = std::string("##") + std::string(cvarName);
|
||||
if (ImGui::BeginCombo(comboName.c_str(), comboArray[selected])) {
|
||||
for (uint8_t i = 0; i < comboArray.size(); i++) {
|
||||
if (strlen(comboArray[i]) > 1) {
|
||||
if (strlen(comboArray[i]) > 0) {
|
||||
if (ImGui::Selectable(comboArray[i], i == selected)) {
|
||||
CVarSetInteger(cvarName, i);
|
||||
selected = i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue