1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 03:42:41 +01:00

Codechange: swap int + year to year + int

This way the operator+ without implicit constructor call is used
This commit is contained in:
Rubidium
2024-12-31 23:20:41 +01:00
committed by rubidium42
parent 58ba8c122b
commit 9b3f4dff4c
3 changed files with 4 additions and 4 deletions

View File

@@ -1018,7 +1018,7 @@ static ChangeInfoResult CommonVehicleChangeInfo(EngineInfo *ei, int prop, ByteRe
{
switch (prop) {
case 0x00: // Introduction date
ei->base_intro = buf.ReadWord() + CalendarTime::DAYS_TILL_ORIGINAL_BASE_YEAR;
ei->base_intro = CalendarTime::DAYS_TILL_ORIGINAL_BASE_YEAR + buf.ReadWord();
break;
case 0x02: // Decay speed