summaryrefslogtreecommitdiff
path: root/src/saveload/cargomonitor_sl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/cargomonitor_sl.cpp')
-rw-r--r--src/saveload/cargomonitor_sl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/saveload/cargomonitor_sl.cpp b/src/saveload/cargomonitor_sl.cpp
index 3ca64d77e..abb0d59b9 100644
--- a/src/saveload/cargomonitor_sl.cpp
+++ b/src/saveload/cargomonitor_sl.cpp
@@ -117,7 +117,9 @@ static void LoadPickup()
}
/** Chunk definition of the cargomonitoring maps. */
-extern const ChunkHandler _cargomonitor_chunk_handlers[] = {
- { 'CMDL', SaveDelivery, LoadDelivery, nullptr, nullptr, CH_ARRAY},
- { 'CMPU', SavePickup, LoadPickup, nullptr, nullptr, CH_ARRAY | CH_LAST},
+static const ChunkHandler cargomonitor_chunk_handlers[] = {
+ { 'CMDL', SaveDelivery, LoadDelivery, nullptr, nullptr, CH_ARRAY },
+ { 'CMPU', SavePickup, LoadPickup, nullptr, nullptr, CH_ARRAY },
};
+
+extern const ChunkHandlerTable _cargomonitor_chunk_handlers(cargomonitor_chunk_handlers);