Skip to content

Commit

Permalink
String comparison is hard.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil committed Sep 9, 2024
1 parent 2873cb1 commit 3ae9ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BossMod/Timeline/CooldownPlannerColumns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public int DrawPhaseControls(int selectedPhase)

var selPhase = _tree.Phases[selectedPhase];
ImGui.SameLine();
if (ImGui.SliderFloat("###phase-duration", ref selPhase.Duration, 0, selPhase.MaxTime, $"{selPhase.Name.Replace("%", "%%")}: %.1f"))
if (ImGui.SliderFloat("###phase-duration", ref selPhase.Duration, 0, selPhase.MaxTime, $"{selPhase.Name.Replace("%", "%%", StringComparison.Ordinal)}: %.1f"))
{
Plan.PhaseDurations[selectedPhase] = selPhase.Duration;
if (_syncTimings)
Expand Down

0 comments on commit 3ae9ec6

Please sign in to comment.