diff options
author | Strangerke | 2015-01-27 07:02:46 +0100 |
---|---|---|
committer | Strangerke | 2015-01-27 07:04:18 +0100 |
commit | 77302c406f5fa3641ff7dd3454d8b87d43274c86 (patch) | |
tree | 9670f5388da5a2e7a1bb84c3c57b9549f10e9bb5 | |
parent | d58f250918f742fd7fd035d7764433f492520e45 (diff) | |
download | scummvm-rg350-77302c406f5fa3641ff7dd3454d8b87d43274c86.tar.gz scummvm-rg350-77302c406f5fa3641ff7dd3454d8b87d43274c86.tar.bz2 scummvm-rg350-77302c406f5fa3641ff7dd3454d8b87d43274c86.zip |
ACCESS: Initialize some variables
-rw-r--r-- | engines/access/access.cpp | 3 | ||||
-rw-r--r-- | engines/access/files.cpp | 4 | ||||
-rw-r--r-- | engines/access/files.h | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp index 7f59ae7ad6..0a4e519c91 100644 --- a/engines/access/access.cpp +++ b/engines/access/access.cpp @@ -94,6 +94,9 @@ AccessEngine::AccessEngine(OSystem *syst, const AccessGameDescription *gameDesc) _cheatFl = false; _restartFl = false; _printEnd = 0; + for (int i = 0; i < 100; i++) + _objectsTable[i] = nullptr; + _clearSummaryFlag = false; } AccessEngine::~AccessEngine() { diff --git a/engines/access/files.cpp b/engines/access/files.cpp index 42a7914638..4d734a67a9 100644 --- a/engines/access/files.cpp +++ b/engines/access/files.cpp @@ -40,6 +40,10 @@ void FileIdent::load(Common::SeekableReadStream &s) { /*------------------------------------------------------------------------*/ +CellIdent:: CellIdent() { + _cell = 0; +} + CellIdent::CellIdent(int cell, int fileNum, int subfile) { _cell = cell; _fileNum = fileNum; diff --git a/engines/access/files.h b/engines/access/files.h index 8b1aef0363..714ea44c75 100644 --- a/engines/access/files.h +++ b/engines/access/files.h @@ -46,7 +46,7 @@ struct FileIdent { struct CellIdent : FileIdent { byte _cell; - CellIdent() {} + CellIdent(); CellIdent(int cell, int fileNum, int subfile); }; |