summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-06-14 13:57:53 +0200
committerPatric Stout <github@truebrain.nl>2021-06-15 19:36:15 +0200
commit8e91527251c8190889abbfe80ee35f9fef057a94 (patch)
tree60985a944ba5a4306db17180dfc6eb7f5d734bea /src/settings.cpp
parent4c4b55ecbdb6206afef7f20d905de2f2a343959a (diff)
downloadopenttd-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/settings.cpp')
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 169549955..dab0fe08c 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -2105,7 +2105,7 @@ static void Save_PATS()
}
static const ChunkHandler setting_chunk_handlers[] = {
- { 'OPTS', nullptr, Load_OPTS, nullptr, nullptr, CH_RIFF },
+ { 'OPTS', nullptr, Load_OPTS, nullptr, nullptr, CH_READONLY },
{ 'PATS', Save_PATS, Load_PATS, nullptr, Check_PATS, CH_ARRAY },
};