mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 09:22:42 +01:00
Codechange: use std::source_location over __FILE__ and __LINE__ for Backup
This commit is contained in:
@@ -241,7 +241,7 @@ CommandCost CmdChangeBankBalance(DoCommandFlag flags, TileIndex tile, Money delt
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
/* Change company bank balance of company. */
|
||||
Backup<CompanyID> cur_company(_current_company, company, FILE_LINE);
|
||||
Backup<CompanyID> cur_company(_current_company, company);
|
||||
SubtractMoneyFromCompany(CommandCost(expenses_type, -delta));
|
||||
cur_company.Restore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user