@@ -137,12 +137,17 @@ static uint32 GetObjectIDAtOffset(TileIn
if (!IsTileType(tile, MP_OBJECT)) {
return 0xFFFF;
}
const ObjectSpec *spec = ObjectSpec::GetByTile(tile);
/* Default objects have no associated NewGRF file */
if (spec->grf_prop.grffile == NULL) {
return 0xFFFE; // Defined in another grf file
if (spec->grf_prop.grffile->grfid == cur_grfid) { // same object, same grf ?
return spec->grf_prop.local_id;
Status change: