Loading

Paste #pwmdu3hy1

  1. diff --git a/src/newgrf.cpp b/src/newgrf.cpp
  2. index ade7c00..de7a4e7 100644
  3. --- a/src/newgrf.cpp
  4. +++ b/src/newgrf.cpp
  5. @@ -4262,7 +4262,7 @@ static ChangeInfoResult RoadTypeChangeInfo(uint id, int numinfo, int prop, ByteR
  6.         }
  7.  
  8.         for (int i = 0; i < numinfo; i++) {
  9. -               RoadTypeIdentifier rtid = RoadTypeIdentifier(_cur.grffile->roadtype_map[basetype][id + i]);
  10. +               RoadTypeIdentifier rtid = RoadTypeIdentifier(basetype, (RoadSubType)_cur.grffile->roadtype_map[basetype][id + i]);
  11.                 if (!rtid.IsValid()) return CIR_INVALID_ID;
  12.  
  13.                 RoadtypeInfo *rti = &_roadtypes[basetype][rtid.subtype];

Comments