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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user