SaveTool: fix an issue with the damage type radio buttons.

This commit is contained in:
Guillaume Jacquemin 2022-04-08 14:12:14 +02:00
parent 32a1a6d014
commit c35735b2fc

View file

@ -389,8 +389,8 @@ void SaveTool::drawWeaponEditor(Weapon& weapon) {
weapon.damageType = DamageType::Freeze; weapon.damageType = DamageType::Freeze;
} }
ImGui::SameLine(); ImGui::SameLine();
if(ImGui::RadioButton("Shock##Shock", weapon.damageType == DamageType::Freeze)) { if(ImGui::RadioButton("Shock##Shock", weapon.damageType == DamageType::Shock)) {
weapon.damageType = DamageType::Freeze; weapon.damageType = DamageType::Shock;
} }
} }