diff options
author | Patric Stout <truebrain@openttd.org> | 2021-06-14 13:57:53 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-06-15 19:36:15 +0200 |
commit | 8e91527251c8190889abbfe80ee35f9fef057a94 (patch) | |
tree | 60985a944ba5a4306db17180dfc6eb7f5d734bea /src/saveload/economy_sl.cpp | |
parent | 4c4b55ecbdb6206afef7f20d905de2f2a343959a (diff) | |
download | openttd-8e91527251c8190889abbfe80ee35f9fef057a94.tar.xz |
Codechange: mark chunks that are not stored as CH_READONLY
This makes it easier to spot chunks that have a save_proc that
is a nullptr, but also prevents confusion, where it looks like
the CH_ type of a chunk has influence on how it is being read.
It is not, it is only used for saving.
Diffstat (limited to 'src/saveload/economy_sl.cpp')
-rw-r--r-- | src/saveload/economy_sl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/economy_sl.cpp b/src/saveload/economy_sl.cpp index 7a0f536b2..d8624f5d6 100644 --- a/src/saveload/economy_sl.cpp +++ b/src/saveload/economy_sl.cpp @@ -100,8 +100,8 @@ static void Ptrs_CAPY() static const ChunkHandler economy_chunk_handlers[] = { { 'CAPY', Save_CAPY, Load_CAPY, Ptrs_CAPY, nullptr, CH_ARRAY }, - { 'PRIC', nullptr, Load_PRIC, nullptr, nullptr, CH_RIFF }, - { 'CAPR', nullptr, Load_CAPR, nullptr, nullptr, CH_RIFF }, + { 'PRIC', nullptr, Load_PRIC, nullptr, nullptr, CH_READONLY }, + { 'CAPR', nullptr, Load_CAPR, nullptr, nullptr, CH_READONLY }, { 'ECMY', Save_ECMY, Load_ECMY, nullptr, nullptr, CH_ARRAY }, }; |