summaryrefslogtreecommitdiff
path: root/src/saveload/misc_sl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/misc_sl.cpp')
-rw-r--r--src/saveload/misc_sl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/saveload/misc_sl.cpp b/src/saveload/misc_sl.cpp
index 35b59a021..a742090e8 100644
--- a/src/saveload/misc_sl.cpp
+++ b/src/saveload/misc_sl.cpp
@@ -152,9 +152,11 @@ static void Load_VIEW()
if (!IsSavegameVersionBefore(SLV_RIFF_TO_ARRAY) && SlIterateArray() != -1) SlErrorCorrupt("Too many DATE entries");
}
-static const ChunkHandler misc_chunk_handlers[] = {
- { 'DATE', Save_DATE, Load_DATE, nullptr, Check_DATE, CH_TABLE },
- { 'VIEW', Save_VIEW, Load_VIEW, nullptr, nullptr, CH_TABLE },
+static const ChunkHandler DATE{ 'DATE', Save_DATE, Load_DATE, nullptr, Check_DATE, CH_TABLE };
+static const ChunkHandler VIEW{ 'VIEW', Save_VIEW, Load_VIEW, nullptr, nullptr, CH_TABLE };
+static const ChunkHandlerRef misc_chunk_handlers[] = {
+ DATE,
+ VIEW,
};
extern const ChunkHandlerTable _misc_chunk_handlers(misc_chunk_handlers);