Close #21837: Formatter is overwritten in RideConstruction.cpp

Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
This commit is contained in:
Harry Hopkinson 2024-04-20 14:49:36 +01:00 committed by GitHub
parent 1b5d0f47ab
commit b05dcb3dfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -1515,6 +1515,10 @@ static Widget _rideConstructionWidgets[] = {
}
ft.Add<uint16_t>(brakeSpeed2);
}
else
{
ft.Increment(2);
}
widgets[WIDX_SEAT_ROTATION_ANGLE_SPINNER].text = RideConstructionSeatAngleRotationStrings
[_currentSeatRotationAngle];
@ -1536,8 +1540,6 @@ static Widget _rideConstructionWidgets[] = {
}
// Set window title arguments
ft = Formatter::Common();
ft.Increment(4);
currentRide->FormatNameTo(ft);
}