diff options
author | glx22 <glx@openttd.org> | 2021-06-09 16:23:35 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-06 22:29:08 +0200 |
commit | c1a9fe6fbd736c9e3a93314b0721d8f2cb8a2052 (patch) | |
tree | 801fdadf7721c07033fff31bf4d04c3d5f6200a5 /src/saveload/airport_sl.cpp | |
parent | f371a5ad705e10940612475cc697091914a2c96a (diff) | |
download | openttd-c1a9fe6fbd736c9e3a93314b0721d8f2cb8a2052.tar.xz |
Codechange: Use static array of references to ChunkHandler
Diffstat (limited to 'src/saveload/airport_sl.cpp')
-rw-r--r-- | src/saveload/airport_sl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/saveload/airport_sl.cpp b/src/saveload/airport_sl.cpp index 6862fc133..3ab852150 100644 --- a/src/saveload/airport_sl.cpp +++ b/src/saveload/airport_sl.cpp @@ -34,9 +34,11 @@ static void Load_ATID() Load_NewGRFMapping(_airporttile_mngr); } -static const ChunkHandler airport_chunk_handlers[] = { - { 'ATID', Save_ATID, Load_ATID, nullptr, nullptr, CH_TABLE }, - { 'APID', Save_APID, Load_APID, nullptr, nullptr, CH_TABLE }, +static const ChunkHandler ATID{ 'ATID', Save_ATID, Load_ATID, nullptr, nullptr, CH_TABLE }; +static const ChunkHandler APID{ 'APID', Save_APID, Load_APID, nullptr, nullptr, CH_TABLE }; +static const ChunkHandlerRef airport_chunk_handlers[] = { + ATID, + APID, }; extern const ChunkHandlerTable _airport_chunk_handlers(airport_chunk_handlers); |