Changeset - r24228:70d8c79f59e1
master
0
2
0
Fix #8166: don't crash on loading an invalid roadtype newgrf
Initialization code for GRFFile::roadtype_map was copied from
railtype_map. But while RailType is a byte-sized enum and could thus
be initialized via memset, RoadType doesn't have a defined size.
Initialization code for GRFFile::roadtype_map was copied from
railtype_map. But while RailType is a byte-sized enum and could thus
be initialized via memset, RoadType doesn't have a defined size.
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
0 comments (0 inline, 0 general)