Skip to content

Commit

Permalink
TITANIC: Cleanup of CPlugIn
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 3, 2016
1 parent 86a139d commit e2c68e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion engines/titanic/carry/plug_in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion engines/titanic/carry/plug_in.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CPlugIn : public CCarry {
DECLARE_MESSAGE_MAP;
bool UseWithOtherMsg(CUseWithOtherMsg *msg);
private:
int _field12C;
int _unused;
public:
CLASSDEF;
CPlugIn();
Expand Down

0 comments on commit e2c68e0

Please sign in to comment.