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/pet_control/pet_control.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/pet_control/pet_control.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp index 6e30711397..0695cdea79 100644 --- a/engines/titanic/pet_control/pet_control.cpp +++ b/engines/titanic/pet_control/pet_control.cpp @@ -55,7 +55,7 @@ CPetControl::CPetControl() : CGameObject(), _sections[PET_MESSAGE] = &_message; } -void CPetControl::save(SimpleFile *file, int indent) const { +void CPetControl::save(SimpleFile *file, int indent) { file->writeNumberLine(0, indent); file->writeNumberLine(_currentArea, indent); file->writeQuotedLine(_activeNPCName, indent); @@ -113,7 +113,7 @@ void CPetControl::loadAreas(SimpleFile *file, int param) { _frame.load(file, param); } -void CPetControl::saveAreas(SimpleFile *file, int indent) const { +void CPetControl::saveAreas(SimpleFile *file, int indent) { _conversations.save(file, indent); _rooms.save(file, indent); _remote.save(file, indent); |