diff --git a/src/sl/saveload.cpp b/src/sl/saveload.cpp index 8395dbec25..cd1addecc4 100644 --- a/src/sl/saveload.cpp +++ b/src/sl/saveload.cpp @@ -2440,6 +2440,7 @@ SaveLoadTableData SlTableHeader(const NamedSaveLoadTable &slt, TableHeaderSpecia std::unique_ptr handler = sld.struct_handler_factory(); sld.struct_handler = handler.get(); sld.struct_handler->table_data = SlTableHeader(sld.struct_handler->GetDescription()); + sld.struct_handler->SavedTableDescription(); saveloads.struct_handlers.push_back(std::move(handler)); } } diff --git a/src/sl/saveload_types.h b/src/sl/saveload_types.h index 56e2fb4a65..a7c83ad5e5 100644 --- a/src/sl/saveload_types.h +++ b/src/sl/saveload_types.h @@ -273,6 +273,11 @@ public: * Called immediately after table_data is populated during header load. */ virtual void LoadedTableDescription() {}; + + /** + * Called immediately after table_data is populated during header save. + */ + virtual void SavedTableDescription() {}; };