From 28ad78f2047e23abbacbdc8d8b0098e205501f30 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 20 Apr 2019 18:42:06 +0200 Subject: [PATCH] Allow entry of numbers up to 10 million in string_to_money --- src/openrct2/localisation/Localisation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/localisation/Localisation.cpp b/src/openrct2/localisation/Localisation.cpp index fcaf9b28a6..b157518c7a 100644 --- a/src/openrct2/localisation/Localisation.cpp +++ b/src/openrct2/localisation/Localisation.cpp @@ -1513,7 +1513,7 @@ money32 string_to_money(const char* string_to_monetise) auto number = std::stod(processedString, nullptr); number /= (currencyDesc->rate / 10.0); - auto whole = static_cast(number); + auto whole = static_cast(number); auto fraction = static_cast(ceil((number - whole) * 100.0)); money32 result = MONEY(whole, fraction);