diff options
author | Paul Gilbert | 2016-06-29 19:53:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:25:58 -0400 |
commit | 5ccc0a66da38d23520234e7060efaf966d3345b9 (patch) | |
tree | 9cff2311be2b8e9cd1f62e76ae74e15f3d4c18fc /engines/titanic/core/saveable_object.cpp | |
parent | a82bcd3ce7ef0ae604af45fdb56668fca47e7137 (diff) | |
download | scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.tar.gz scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.tar.bz2 scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.zip |
TITANIC: Removed const modifier from all saveable objects
Turns out that CGameObject::save regenerates the _movieRangeInfo list.
So the const suffix can no longer be used for the entire hierarchy
Diffstat (limited to 'engines/titanic/core/saveable_object.cpp')
-rw-r--r-- | engines/titanic/core/saveable_object.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/core/saveable_object.cpp b/engines/titanic/core/saveable_object.cpp index ad98ac4dfd..d3c64a13ec 100644 --- a/engines/titanic/core/saveable_object.cpp +++ b/engines/titanic/core/saveable_object.cpp @@ -1614,7 +1614,7 @@ CSaveableObject *CSaveableObject::createInstance(const Common::String &name) { return (*_classList)[name](); } -void CSaveableObject::save(SimpleFile *file, int indent) const { +void CSaveableObject::save(SimpleFile *file, int indent) { file->writeNumberLine(0, indent); } @@ -1622,11 +1622,11 @@ void CSaveableObject::load(SimpleFile *file) { file->readNumber(); } -void CSaveableObject::saveHeader(SimpleFile *file, int indent) const { +void CSaveableObject::saveHeader(SimpleFile *file, int indent) { file->writeClassStart(getType()->_className, indent); } -void CSaveableObject::saveFooter(SimpleFile *file, int indent) const { +void CSaveableObject::saveFooter(SimpleFile *file, int indent) { file->writeClassEnd(indent); } |