From 7337e9d4a3570463ac2432076f8797dfb08c53cf Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 24 Dec 2020 23:08:01 +0100 Subject: [PATCH] Fix #13644, #13102: Underflows in ride graph, temperature, cut-away view --- distribution/changelog.txt | 1 + src/openrct2/localisation/Formatting.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index a34ea93b6b..591c697ac8 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -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. diff --git a/src/openrct2/localisation/Formatting.cpp b/src/openrct2/localisation/Formatting.cpp index 7e288d4134..aedeac49e5 100644 --- a/src/openrct2/localisation/Formatting.cpp +++ b/src/openrct2/localisation/Formatting.cpp @@ -768,16 +768,18 @@ namespace OpenRCT2 case FormatToken::Sprite: anyArgs.push_back(ReadFromArgs(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(args)); + break; + case FormatToken::Comma16: case FormatToken::Length: case FormatToken::Comma1dp16: - anyArgs.push_back(ReadFromArgs(args)); + anyArgs.push_back(ReadFromArgs(args)); break; case FormatToken::StringId: {