You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Many of the member variables that are used in save/load 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. Unfortunately, the trickery employed for saving linkgraph settings causes quite some clutter in the settings ini files. |
3 years ago | |
---|---|---|
.. | ||
CMakeLists.txt | 4 years ago | |
afterload.cpp | 3 years ago | |
ai_sl.cpp | 5 years ago | |
airport_sl.cpp | 5 years ago | |
animated_tile_sl.cpp | 5 years ago | |
autoreplace_sl.cpp | 5 years ago | |
cargomonitor_sl.cpp | 5 years ago | |
cargopacket_sl.cpp | 5 years ago | |
cheat_sl.cpp | 5 years ago | |
company_sl.cpp | 4 years ago | |
depot_sl.cpp | 4 years ago | |
economy_sl.cpp | 4 years ago | |
engine_sl.cpp | 4 years ago | |
game_sl.cpp | 4 years ago | |
gamelog_sl.cpp | 4 years ago | |
goal_sl.cpp | 5 years ago | |
group_sl.cpp | 4 years ago | |
industry_sl.cpp | 3 years ago | |
labelmaps_sl.cpp | 5 years ago | |
linkgraph_sl.cpp | 3 years ago | |
map_sl.cpp | 5 years ago | |
misc_sl.cpp | 4 years ago | |
newgrf_sl.cpp | 5 years ago | |
newgrf_sl.h | 5 years ago | |
object_sl.cpp | 5 years ago | |
oldloader.cpp | 3 years ago | |
oldloader.h | 3 years ago | |
oldloader_sl.cpp | 4 years ago | |
order_sl.cpp | 4 years ago | |
saveload.cpp | 4 years ago | |
saveload.h | 3 years ago | |
saveload_filter.h | 5 years ago | |
saveload_internal.h | 4 years ago | |
signs_sl.cpp | 4 years ago | |
station_sl.cpp | 4 years ago | |
storage_sl.cpp | 5 years ago | |
story_sl.cpp | 5 years ago | |
strings_sl.cpp | 4 years ago | |
subsidy_sl.cpp | 5 years ago | |
town_sl.cpp | 4 years ago | |
vehicle_sl.cpp | 3 years ago | |
waypoint_sl.cpp | 4 years ago |