summaryrefslogtreecommitdiff
path: root/src/saveload/game_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/game_sl.cpp
parentf371a5ad705e10940612475cc697091914a2c96a (diff)
downloadopenttd-c1a9fe6fbd736c9e3a93314b0721d8f2cb8a2052.tar.xz
Codechange: Use static array of references to ChunkHandler
Diffstat (limited to 'src/saveload/game_sl.cpp')
-rw-r--r--src/saveload/game_sl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/saveload/game_sl.cpp b/src/saveload/game_sl.cpp
index f0083cb88..e075326ae 100644
--- a/src/saveload/game_sl.cpp
+++ b/src/saveload/game_sl.cpp
@@ -188,9 +188,11 @@ static void Save_GSTR()
}
}
-static const ChunkHandler game_chunk_handlers[] = {
- { 'GSTR', Save_GSTR, Load_GSTR, nullptr, nullptr, CH_TABLE },
- { 'GSDT', Save_GSDT, Load_GSDT, nullptr, nullptr, CH_TABLE },
+static const ChunkHandler GSTR{ 'GSTR', Save_GSTR, Load_GSTR, nullptr, nullptr, CH_TABLE };
+static const ChunkHandler GSDT{ 'GSDT', Save_GSDT, Load_GSDT, nullptr, nullptr, CH_TABLE };
+static const ChunkHandlerRef game_chunk_handlers[] = {
+ GSTR,
+ GSDT,
};
extern const ChunkHandlerTable _game_chunk_handlers(game_chunk_handlers);