aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-02 22:34:10 -0400
committerPaul Gilbert2016-09-02 22:34:10 -0400
commite2c68e0a7dcb2eeb10072df84f1ac6dfefa8d1f1 (patch)
treec75c467470ae6501cad1721e1ff8369adda94704 /engines/titanic
parent86a139dc028858de27d0ca86d7e90c0f3c5cdc04 (diff)
downloadscummvm-rg350-e2c68e0a7dcb2eeb10072df84f1ac6dfefa8d1f1.tar.gz
scummvm-rg350-e2c68e0a7dcb2eeb10072df84f1ac6dfefa8d1f1.tar.bz2
scummvm-rg350-e2c68e0a7dcb2eeb10072df84f1ac6dfefa8d1f1.zip
TITANIC: Cleanup of CPlugIn
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/carry/plug_in.cpp4
-rw-r--r--engines/titanic/carry/plug_in.h2
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();