aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2016-04-06 23:22:44 +0200
committerJohannes Schickel2016-04-06 23:22:44 +0200
commitc412478a11bc715015a2a90c4fb15504bc883b8c (patch)
treee8b983787a607687c220fdda489610d137981a70
parentc51c89ca3232a4bb128949b033f8f771aeff6dc3 (diff)
downloadscummvm-rg350-c412478a11bc715015a2a90c4fb15504bc883b8c.tar.gz
scummvm-rg350-c412478a11bc715015a2a90c4fb15504bc883b8c.tar.bz2
scummvm-rg350-c412478a11bc715015a2a90c4fb15504bc883b8c.zip
SCI: Fix compilation for C++98.
-rw-r--r--engines/sci/engine/savegame.cpp8
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);