Fix #13644, #13102: Underflows in ride graph, temperature, cut-away view

This commit is contained in:
Michael Steenbeek 2020-12-24 23:08:01 +01:00 committed by GitHub
parent efada44157
commit 7337e9d4a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,7 @@
- Feature: [#13614] Add terrain surfaces from RollerCoaster Tycoon 1.
- Change: [#13346] [Plugin] Renamed FootpathScenery to FootpathAddition, fix typos.
- Fix: [#12895] Mechanics are called to repair rides that have already been fixed.
- Fix: [#13102] Underflow on height chart (Ride measurements).
- Fix: [#13257] Rides that are exactly the minimum objective length are not counted.
- Fix: [#13334] Uninitialised variables in CustomTabDesc.
- Fix: [#13342] Rename tabChange to onTabChange in WindowDesc interface.

View File

@ -768,16 +768,18 @@ namespace OpenRCT2
case FormatToken::Sprite:
anyArgs.push_back(ReadFromArgs<int32_t>(args));
break;
case FormatToken::Comma16:
case FormatToken::UInt16:
case FormatToken::MonthYear:
case FormatToken::Month:
case FormatToken::Velocity:
case FormatToken::DurationShort:
case FormatToken::DurationLong:
anyArgs.push_back(ReadFromArgs<uint16_t>(args));
break;
case FormatToken::Comma16:
case FormatToken::Length:
case FormatToken::Comma1dp16:
anyArgs.push_back(ReadFromArgs<uint16_t>(args));
anyArgs.push_back(ReadFromArgs<int16_t>(args));
break;
case FormatToken::StringId:
{