aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/game/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lastexpress/game/object.cpp')
-rw-r--r--engines/lastexpress/game/object.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/lastexpress/game/object.cpp b/engines/lastexpress/game/object.cpp
index 0b336b941f..f0e81781b6 100644
--- a/engines/lastexpress/game/object.cpp
+++ b/engines/lastexpress/game/object.cpp
@@ -89,8 +89,9 @@ void Objects::updateLocation2(ObjectIndex index, ObjectLocation location2) {
//////////////////////////////////////////////////////////////////////////
// Serializable
//////////////////////////////////////////////////////////////////////////
-void Objects::saveLoadWithSerializer(Common::Serializer &) {
- error("Objects::saveLoadWithSerializer: not implemented!");
+void Objects::saveLoadWithSerializer(Common::Serializer &s) {
+ for (int i = 0; i < ARRAYSIZE(_objects); i++)
+ _objects[i].saveLoadWithSerializer(s);
}
//////////////////////////////////////////////////////////////////////////
@@ -99,7 +100,7 @@ void Objects::saveLoadWithSerializer(Common::Serializer &) {
Common::String Objects::toString() {
Common::String ret = "";
- for (int i = 0; i < kObjectMax; i++)
+ for (int i = 0; i < ARRAYSIZE(_objects); i++)
ret += Common::String::printf("%d : %s\n", i, _objects[i].toString().c_str());
return ret;