diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 48d5e44fb9..0cc1e752e1 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -211,7 +211,13 @@ struct ArraySyncer : Common::BinaryFunction<Common::Serializer, T, void> { }; // Convenience wrapper -template<typename T, class Syncer = DefaultSyncer<T>> +template<typename T> +void syncArray(Common::Serializer &s, Common::Array<T> &arr) { + ArraySyncer<T> sync; + sync(s, arr); +} + +template<typename T, class Syncer> void syncArray(Common::Serializer &s, Common::Array<T> &arr) { ArraySyncer<T, Syncer> sync; sync(s, arr); |