summaryrefslogtreecommitdiff
path: root/src/saveload/group_sl.cpp
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-06-09 16:23:35 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-07-06 22:29:08 +0200
commitc1a9fe6fbd736c9e3a93314b0721d8f2cb8a2052 (patch)
tree801fdadf7721c07033fff31bf4d04c3d5f6200a5 /src/saveload/group_sl.cpp
parentf371a5ad705e10940612475cc697091914a2c96a (diff)
downloadopenttd-c1a9fe6fbd736c9e3a93314b0721d8f2cb8a2052.tar.xz
Codechange: Use static array of references to ChunkHandler
Diffstat (limited to 'src/saveload/group_sl.cpp')
-rw-r--r--src/saveload/group_sl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload/group_sl.cpp b/src/saveload/group_sl.cpp
index 77ab23bd8..6c510b6e6 100644
--- a/src/saveload/group_sl.cpp
+++ b/src/saveload/group_sl.cpp
@@ -59,8 +59,9 @@ static void Load_GRPS()
}
}
-static const ChunkHandler group_chunk_handlers[] = {
- { 'GRPS', Save_GRPS, Load_GRPS, nullptr, nullptr, CH_TABLE },
+static const ChunkHandler GRPS{ 'GRPS', Save_GRPS, Load_GRPS, nullptr, nullptr, CH_TABLE };
+static const ChunkHandlerRef group_chunk_handlers[] = {
+ GRPS,
};
extern const ChunkHandlerTable _group_chunk_handlers(group_chunk_handlers);