From 56c514f43b47034a85ddc6d5d19efedb53fd5574 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 4 Jul 2020 23:47:48 +0100 Subject: [PATCH] Fix max template param in CompanyFinancesWindow::OnHundredthTick --- src/company_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 065e67a083..17f52d814f 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -461,7 +461,7 @@ struct CompanyFinancesWindow : Window { { const Company *c = Company::Get((CompanyID)this->window_number); if (c->money > this->max_money) { - this->max_money = max(c->money * 2, this->max_money * 4); + this->max_money = max(c->money * 2, this->max_money * 4); this->SetupWidgets(); this->ReInit(); }