summaryrefslogtreecommitdiff
path: root/src/saveload/object_sl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/object_sl.cpp')
-rw-r--r--src/saveload/object_sl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/saveload/object_sl.cpp b/src/saveload/object_sl.cpp
index 40ca8cd11..dcf5fd65c 100644
--- a/src/saveload/object_sl.cpp
+++ b/src/saveload/object_sl.cpp
@@ -66,7 +66,9 @@ static void Load_OBID()
Load_NewGRFMapping(_object_mngr);
}
-extern const ChunkHandler _object_chunk_handlers[] = {
+static const ChunkHandler object_chunk_handlers[] = {
{ 'OBID', Save_OBID, Load_OBID, nullptr, nullptr, CH_ARRAY },
- { 'OBJS', Save_OBJS, Load_OBJS, Ptrs_OBJS, nullptr, CH_ARRAY | CH_LAST},
+ { 'OBJS', Save_OBJS, Load_OBJS, Ptrs_OBJS, nullptr, CH_ARRAY },
};
+
+extern const ChunkHandlerTable _object_chunk_handlers(object_chunk_handlers);