GRF: Fix rail/road type reservation phase with extended properties

This commit is contained in:
Jonathan G Rennison
2020-10-19 17:41:59 +01:00
parent c0c0c9c340
commit e51c585f45

View File

@@ -4447,6 +4447,11 @@ static ChangeInfoResult RailTypeReserveInfo(uint id, int numinfo, int prop, cons
buf->ReadDWord();
break;
case A0RPI_RAILTYPE_ENABLE_PROGRAMMABLE_SIGNALS:
case A0RPI_RAILTYPE_ENABLE_RESTRICTED_SIGNALS:
buf->Skip(buf->ReadExtendedByte());
break;
default:
ret = HandleAction0PropertyDefault(buf, prop);
break;
@@ -4662,6 +4667,10 @@ static ChangeInfoResult RoadTypeReserveInfo(uint id, int numinfo, int prop, cons
buf->ReadDWord();
break;
case A0RPI_ROADTYPE_EXTRA_FLAGS:
buf->Skip(buf->ReadExtendedByte());
break;
default:
ret = CIR_UNKNOWN;
break;