Fix: [Script] Use Money instead of int32 for presenting the value of a company to AIs

This commit is contained in:
SamuXarick
2023-02-09 18:51:58 +00:00
committed by rubidium42
parent 6b99b6672e
commit 43ce73db86
2 changed files with 4 additions and 4 deletions

View File

@@ -703,7 +703,7 @@ static void HandleBankruptcyTakeover(Company *c)
c->bankrupt_timeout = TAKE_OVER_TIMEOUT;
if (best->is_ai) {
AI::NewEvent(best->index, new ScriptEventCompanyAskMerger(c->index, ClampToI32(c->bankrupt_value)));
AI::NewEvent(best->index, new ScriptEventCompanyAskMerger(c->index, c->bankrupt_value));
} else if (IsInteractiveCompany(best->index)) {
ShowBuyCompanyDialog(c->index);
}