summaryrefslogtreecommitdiff
path: root/src/road_map.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-14 00:11:39 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-13 20:08:53 +0100
commit9c9292949fa4d699c58d40abcac563a86df239dd (patch)
tree73dc0836d0e4de6c8beab14fa26982df495f070a /src/road_map.cpp
parent0f621b4956b82313923ef28233cf52919f70eca3 (diff)
downloadopenttd-9c9292949fa4d699c58d40abcac563a86df239dd.tar.xz
Codechange: Don't use cpp_offsetof in the TTO/TTD savegame loader.
Many of the member variables that are used in the oldloader are inside types that are not standard layout types. Using pointer arithmetics to determine addresses of members inside types that are not standard layout is generally undefined behaviour. If we'd use C++17, it is conditionally supported, which means each compiler may or may not support it. And even then using it for individual array elements is syntactically not supported the the standard offsetof function.
Diffstat (limited to 'src/road_map.cpp')
0 files changed, 0 insertions, 0 deletions