Codechange: Use GrfSpecFeature type instead of uint8_t. (#14253)
This commit is contained in:
@@ -48,8 +48,8 @@ static void FeatureNewName(ByteReader &buf)
|
||||
|
||||
bool new_scheme = _cur_gps.grffile->grf_version >= 7;
|
||||
|
||||
uint8_t feature = buf.ReadByte();
|
||||
if (feature >= GSF_END && feature != 0x48) {
|
||||
GrfSpecFeature feature{buf.ReadByte()};
|
||||
if (feature >= GSF_END && feature != GSF_ORIGINAL_STRINGS) {
|
||||
GrfMsg(1, "FeatureNewName: Unsupported feature 0x{:02X}, skipping", feature);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user