summaryrefslogtreecommitdiff
path: root/src/saveload/cheat_sl.cpp
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-05-02 22:41:34 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-06-06 19:35:06 +0200
commitc27afdf3f6b8e7e073b70d4935ca1c871855f3ca (patch)
tree8aa6a64805d1856c873b8a053c2d98a9d1b8585f /src/saveload/cheat_sl.cpp
parent3559e55b9145c5b6c146003b357a158c73efee4e (diff)
downloadopenttd-c27afdf3f6b8e7e073b70d4935ca1c871855f3ca.tar.xz
Codechange: Remove FOR_ALL_CHUNK_HANDLERS
Co-Authored-By: Patric Stout <truebrain@openttd.org>
Diffstat (limited to 'src/saveload/cheat_sl.cpp')
-rw-r--r--src/saveload/cheat_sl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/saveload/cheat_sl.cpp b/src/saveload/cheat_sl.cpp
index 9af175922..970e5f3be 100644
--- a/src/saveload/cheat_sl.cpp
+++ b/src/saveload/cheat_sl.cpp
@@ -48,6 +48,8 @@ static void Load_CHTS()
}
/** Chunk handlers related to cheats. */
-extern const ChunkHandler _cheat_chunk_handlers[] = {
- { 'CHTS', Save_CHTS, Load_CHTS, nullptr, nullptr, CH_RIFF | CH_LAST},
+static const ChunkHandler cheat_chunk_handlers[] = {
+ { 'CHTS', Save_CHTS, Load_CHTS, nullptr, nullptr, CH_RIFF },
};
+
+extern const ChunkHandlerTable _cheat_chunk_handlers(cheat_chunk_handlers);