summaryrefslogtreecommitdiff
path: root/src/saveload/animated_tile_sl.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-06-06 23:23:12 +0200
committerPatric Stout <github@truebrain.nl>2021-06-15 16:45:04 +0200
commita146bcfe93a6c913781cfe471166359e744195d7 (patch)
tree1c4d5065705dfe540620ca974214bf36664a5361 /src/saveload/animated_tile_sl.cpp
parentd0bcb9839a9080326ade985e4b109752fd88e2a6 (diff)
downloadopenttd-a146bcfe93a6c913781cfe471166359e744195d7.tar.xz
Change: store length of SL_STRUCTLIST in the savegame
This wasn't consistently done, and often variables were used that were read by an earlier blob. By moving it next to the struct itself, the code becomes a bit more self-contained and easier to read. Additionally, this allows for external tooling to know how many structs to expect, instead of having to know where to find the length-field or a hard-coded value that can change at any moment.
Diffstat (limited to 'src/saveload/animated_tile_sl.cpp')
0 files changed, 0 insertions, 0 deletions