Recast: fix bug in tile side debug slider

Range 0-7 are 8 sides. -1 is none. The clamp had 1 extra.
This commit is contained in:
Kawe Mazidjatari 2024-11-02 20:06:54 +01:00
parent 7c71e1d147
commit 1f4e7cc080

View File

@ -187,7 +187,7 @@ public:
char* pEnd = nullptr;
m_markedPolyRef = (dtPolyRef)STR_TO_ID(m_polyRefTextInput, &pEnd, 10);
}
ImGui::SliderInt("Tile Side", &m_selectedSide, -1, 8, "%d", ImGuiSliderFlags_NoInput);
ImGui::SliderInt("Tile Side", &m_selectedSide, -1, 7, "%d", ImGuiSliderFlags_NoInput);
ImGui::PopItemWidth();
}