diff options
-rw-r--r-- | engines/titanic/core/saveable_object.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/core/saveable_object.cpp b/engines/titanic/core/saveable_object.cpp index 1e359837a3..9f0ac320e2 100644 --- a/engines/titanic/core/saveable_object.cpp +++ b/engines/titanic/core/saveable_object.cpp @@ -421,7 +421,8 @@ Common::List<ClassDef *> *CSaveableObject::_classDefs; #define DEFFN(T) ClassDef *T::_type; \ CSaveableObject *Function##T() { return new T(); } -#define ADDFN(CHILD, PARENT) CHILD::_type = new TypeTemplate<CHILD>(#CHILD, nullptr); \ +#define ADDFN(CHILD, PARENT) \ + CHILD::_type = new TypeTemplate<CHILD>(#CHILD, PARENT::_type); \ (*_classList)[#CHILD] = Function##CHILD DEFFN(CArm) @@ -1321,7 +1322,7 @@ void CSaveableObject::initClassList() { ADDFN(CSmallChevLeftOn, CToggleSwitch); ADDFN(CSmallChevRightOff, CToggleSwitch); ADDFN(CSmallChevRightOn, CToggleSwitch); - ADDFN(CStatusChangeButton, CSTButtonClass); + ADDFN(CStatusChangeButton, CSTButton); ADDFN(CSTButton, CBackground); ADDFN(CTextDown, CPetGraphic); ADDFN(CTextSkrew, CPetGraphic); |