summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2021-07-20 08:19:00 +0100
committerCharles Pigott <charlespigott@googlemail.com>2021-07-20 10:42:03 +0100
commit549a58731f332e8056eb3b35f6110b92b3c25350 (patch)
treedbb1e5db6bf9a773b9e937109220e9988999ba32 /src/script
parente6e2a67aa10b39f322677bc144da230593de2d78 (diff)
downloadopenttd-549a58731f332e8056eb3b35f6110b92b3c25350.tar.xz
Codechange: Remove (unused) ability to specify min/max of OverflowSafeInt
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_company.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_company.cpp b/src/script/api/script_company.cpp
index 9f5722c10..dddcc950c 100644
--- a/src/script/api/script_company.cpp
+++ b/src/script/api/script_company.cpp
@@ -140,9 +140,9 @@
if (quarter > EARLIEST_QUARTER) return -1;
if (quarter == CURRENT_QUARTER) {
- return ::Company::Get(company)->cur_economy.delivered_cargo.GetSum<OverflowSafeInt<int32, INT32_MAX, INT32_MIN> >();
+ return ::Company::Get(company)->cur_economy.delivered_cargo.GetSum<OverflowSafeInt32>();
}
- return ::Company::Get(company)->old_economy[quarter - 1].delivered_cargo.GetSum<OverflowSafeInt<int32, INT32_MAX, INT32_MIN> >();
+ return ::Company::Get(company)->old_economy[quarter - 1].delivered_cargo.GetSum<OverflowSafeInt32>();
}
/* static */ int32 ScriptCompany::GetQuarterlyPerformanceRating(ScriptCompany::CompanyID company, uint32 quarter)