Skip to content

Commit 5361a78

Browse files
committed
Fix bug where scrolling WaypointZZ values in trigger event and action parameter text boxes did not work properly
1 parent f6bcaa6 commit 5361a78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/TSMapEditor/UI/Windows/TriggersWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,12 @@ private void HandleScrollOnEventOrActionParameterTextBox(string currentParameter
512512
int waypointIdentifier = Helpers.GetWaypointNumberFromAlphabeticalString(currentParameterValue);
513513
if (Cursor.ScrollWheelValue < 0 && map.Waypoints.Exists(wp => wp.Identifier == waypointIdentifier + 1))
514514
{
515-
textBox.Text = Helpers.WaypointNumberToAlphabeticalString(waypointIdentifier + 1);
515+
textBox.Text = (waypointIdentifier + 1).ToString(CultureInfo.InvariantCulture);
516516
EditTrigger(editedTrigger);
517517
}
518518
else if (Cursor.ScrollWheelValue > 0 && map.Waypoints.Exists(wp => wp.Identifier == waypointIdentifier - 1))
519519
{
520-
textBox.Text = Helpers.WaypointNumberToAlphabeticalString(waypointIdentifier - 1);
520+
textBox.Text = (waypointIdentifier - 1).ToString(CultureInfo.InvariantCulture);
521521
EditTrigger(editedTrigger);
522522
}
523523
break;

0 commit comments

Comments
 (0)