diff options
author | Paul Gilbert | 2017-08-05 19:06:35 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-05 19:06:35 -0400 |
commit | e29b2fc7310ed6c14c798c7c160a1bc91c15462c (patch) | |
tree | 145105e2a367936329ff1fb2517d85730660fb63 | |
parent | 503b9c16d2f52f633988aea986fc8d350f894ead (diff) | |
download | scummvm-rg350-e29b2fc7310ed6c14c798c7c160a1bc91c15462c.tar.gz scummvm-rg350-e29b2fc7310ed6c14c798c7c160a1bc91c15462c.tar.bz2 scummvm-rg350-e29b2fc7310ed6c14c798c7c160a1bc91c15462c.zip |
TITANIC: Fix original savegames from the bar not loading
-rw-r--r-- | engines/titanic/core/saveable_object.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/support/movie_range_info.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/support/movie_range_info.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/engines/titanic/core/saveable_object.cpp b/engines/titanic/core/saveable_object.cpp index 4784151a01..256ca41821 100644 --- a/engines/titanic/core/saveable_object.cpp +++ b/engines/titanic/core/saveable_object.cpp @@ -483,6 +483,7 @@ DEFFN(ListItem); DEFFN(CMailMan); DEFFN(CMessageTarget); DEFFN(CMovieClip); +DEFFN(CMovieRangeInfo); DEFFN(CMultiDropTarget); DEFFN(CNamedItem); DEFFN(CNodeItem); @@ -1052,6 +1053,7 @@ void CSaveableObject::initClassList() { ADDFN(CFileListItem, ListItem); ADDFN(CMailMan, CGameObject); ADDFN(CMovieClip, ListItem); + ADDFN(CMovieRangeInfo, ListItem); ADDFN(CMultiDropTarget, CDropTarget); ADDFN(CStartAction, CBackground); ADDFN(CEditControl, CGameObject); diff --git a/engines/titanic/support/movie_range_info.cpp b/engines/titanic/support/movie_range_info.cpp index 018ffd63b5..ddf42919cb 100644 --- a/engines/titanic/support/movie_range_info.cpp +++ b/engines/titanic/support/movie_range_info.cpp @@ -55,6 +55,8 @@ void CMovieRangeInfo::save(SimpleFile *file, int indent) { file->writeNumberLine(_isRepeat, indent + 1); file->writeNumberLine(_isReversed, indent + 1); _events.save(file, indent + 1); + + ListItem::save(file, indent); } void CMovieRangeInfo::load(SimpleFile *file) { @@ -67,6 +69,8 @@ void CMovieRangeInfo::load(SimpleFile *file) { _isReversed = file->readNumber(); _events.load(file); } + + ListItem::load(file); } void CMovieRangeInfo::getMovieEnd(CMovieEventList &list) { diff --git a/engines/titanic/support/movie_range_info.h b/engines/titanic/support/movie_range_info.h index 6b13fbadb5..9a0f17a65e 100644 --- a/engines/titanic/support/movie_range_info.h +++ b/engines/titanic/support/movie_range_info.h @@ -41,6 +41,7 @@ public: bool _isRepeat; CMovieEventList _events; public: + CLASSDEF; CMovieRangeInfo(); CMovieRangeInfo(const CMovieRangeInfo *src); virtual ~CMovieRangeInfo(); |