Fix max template param in CompanyFinancesWindow::OnHundredthTick

This commit is contained in:
Jonathan G Rennison
2020-07-04 23:47:48 +01:00
parent bb8d2c3fe0
commit 56c514f43b

View File

@@ -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<Money>(c->money * 2, this->max_money * 4);
this->SetupWidgets();
this->ReInit();
}