summaryrefslogtreecommitdiff
path: root/src/saveload/saveload.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/saveload.h')
-rw-r--r--src/saveload/saveload.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h
index 381e355e0..2f5ebba1f 100644
--- a/src/saveload/saveload.h
+++ b/src/saveload/saveload.h
@@ -450,8 +450,11 @@ struct ChunkHandler {
virtual void LoadCheck(size_t len = 0) const;
};
+/** A reference to ChunkHandler. */
+using ChunkHandlerRef = std::reference_wrapper<const ChunkHandler>;
+
/** A table of ChunkHandler entries. */
-using ChunkHandlerTable = span<const ChunkHandler>;
+using ChunkHandlerTable = span<const ChunkHandlerRef>;
/** A table of SaveLoad entries. */
using SaveLoadTable = span<const struct SaveLoad>;