SaveTool: make the weapon part radio buttons match the game.

This commit is contained in:
Guillaume Jacquemin 2022-04-08 14:12:56 +02:00
parent c35735b2fc
commit 42b4974b43
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ void SaveTool::drawWeaponEditor(Weapon& weapon) {
_selectedWeaponPart = 0; _selectedWeaponPart = 0;
} }
ImGui::SameLine(); ImGui::SameLine();
ImGui::RadioButton(std::to_string(i + 1).c_str(), &_selectedWeaponPart, i); ImGui::RadioButton(std::to_string(i).c_str(), &_selectedWeaponPart, i);
} }
auto& part = weapon.parts[_selectedWeaponPart]; auto& part = weapon.parts[_selectedWeaponPart];