From 3287acd11496dea1dcd653c3d561852d3830e21f Mon Sep 17 00:00:00 2001 From: Rubidium Date: Tue, 7 Mar 2023 22:56:20 +0100 Subject: [PATCH] Fix 13528bfcd0: bank balance command allows int64, GS was limited to int32 --- src/script/api/script_company.cpp | 2 -- src/script/api/script_company.hpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/script/api/script_company.cpp b/src/script/api/script_company.cpp index 895c0b6eae..92c8755a69 100644 --- a/src/script/api/script_company.cpp +++ b/src/script/api/script_company.cpp @@ -241,8 +241,6 @@ { EnforceDeityMode(false); EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END); - EnforcePrecondition(false, (int64)delta >= INT32_MIN); - EnforcePrecondition(false, (int64)delta <= INT32_MAX); EnforcePrecondition(false, tile == INVALID_TILE || ::IsValidTile(tile)); company = ResolveCompanyID(company); diff --git a/src/script/api/script_company.hpp b/src/script/api/script_company.hpp index fffd93bff0..690277600b 100644 --- a/src/script/api/script_company.hpp +++ b/src/script/api/script_company.hpp @@ -246,8 +246,6 @@ public: * @return True, if the bank balance was changed. * @game @pre ScriptCompanyMode::IsDeity(). * @pre ResolveCompanyID(company) != COMPANY_INVALID. - * @pre delta >= -2**31 - * @pre delta < 2**31 * @note You need to create your own news message to inform about costs/gifts that you create using this command. * @api -ai */