From e2c68e0a7dcb2eeb10072df84f1ac6dfefa8d1f1 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 2 Sep 2016 22:34:10 -0400 Subject: TITANIC: Cleanup of CPlugIn --- engines/titanic/carry/plug_in.cpp | 4 +++- engines/titanic/carry/plug_in.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/engines/titanic/carry/plug_in.cpp b/engines/titanic/carry/plug_in.cpp index 883458c9b1..438b9a5883 100644 --- a/engines/titanic/carry/plug_in.cpp +++ b/engines/titanic/carry/plug_in.cpp @@ -28,16 +28,18 @@ BEGIN_MESSAGE_MAP(CPlugIn, CCarry) ON_MESSAGE(UseWithOtherMsg) END_MESSAGE_MAP() -CPlugIn::CPlugIn() : CCarry(), _field12C(0) { +CPlugIn::CPlugIn() : CCarry(), _unused(0) { } void CPlugIn::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); + file->writeNumberLine(_unused, indent); CCarry::save(file, indent); } void CPlugIn::load(SimpleFile *file) { file->readNumber(); + _unused = file->readNumber(); CCarry::load(file); } diff --git a/engines/titanic/carry/plug_in.h b/engines/titanic/carry/plug_in.h index 1358a99e39..5f7d5dd2b0 100644 --- a/engines/titanic/carry/plug_in.h +++ b/engines/titanic/carry/plug_in.h @@ -31,7 +31,7 @@ class CPlugIn : public CCarry { DECLARE_MESSAGE_MAP; bool UseWithOtherMsg(CUseWithOtherMsg *msg); private: - int _field12C; + int _unused; public: CLASSDEF; CPlugIn(); -- cgit v1.2.3