diff options
-rw-r--r-- | engines/sci/engine/object.h | 2 | ||||
-rw-r--r-- | engines/sci/engine/savegame.cpp | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/engines/sci/engine/object.h b/engines/sci/engine/object.h index 12387bcb09..8b597b42b0 100644 --- a/engines/sci/engine/object.h +++ b/engines/sci/engine/object.h @@ -67,7 +67,7 @@ enum ObjectOffsets { kOffsetNamePointerSci11 = 16 }; -class Object { +class Object : public Common::Serializable { public: Object() : _name(NULL_REG), diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index a59b24010f..de891b559e 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -71,12 +71,6 @@ void syncWithSerializer(Common::Serializer &s, Common::Serializable &obj) { obj.saveLoadWithSerializer(s); } -// FIXME: Object could implement Serializable to make use of the function -// above. -void syncWithSerializer(Common::Serializer &s, Object &obj) { - obj.saveLoadWithSerializer(s); -} - void syncWithSerializer(Common::Serializer &s, reg_t &obj) { // Segment and offset are accessed directly here s.syncAsUint16LE(obj._segment); |