ACCESS: Initialize some variables

This commit is contained in:
Strangerke 2015-01-27 07:02:46 +01:00
parent d58f250918
commit 77302c406f
3 changed files with 8 additions and 1 deletions

View File

@ -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() {

View File

@ -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;

View File

@ -46,7 +46,7 @@ struct FileIdent {
struct CellIdent : FileIdent {
byte _cell;
CellIdent() {}
CellIdent();
CellIdent(int cell, int fileNum, int subfile);
};