diff options
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 78bd9321e6..18b170dacb 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -727,7 +727,6 @@ ScummEngine_v60he::~ScummEngine_v60he() { } } -#ifndef DISABLE_HE ScummEngine_v70he::ScummEngine_v70he(OSystem *syst, const DetectorResult &dr) : ScummEngine_v60he(syst, dr) { if (_game.platform == Common::kPlatformMacintosh && (_game.heversion >= 72 && _game.heversion <= 73)) @@ -735,8 +734,6 @@ ScummEngine_v70he::ScummEngine_v70he(OSystem *syst, const DetectorResult &dr) else _resExtractor = new Win32ResExtractor(this); - _wiz = new Wiz(this); - _heV7RoomOffsets = NULL; _heSndSoundId = 0; @@ -756,19 +753,25 @@ ScummEngine_v70he::ScummEngine_v70he(OSystem *syst, const DetectorResult &dr) ScummEngine_v70he::~ScummEngine_v70he() { delete _resExtractor; - delete _wiz; free(_heV7DiskOffsets); free(_heV7RoomIntOffsets); free(_heV7RoomOffsets); free(_storedFlObjects); } +#ifndef DISABLE_HE ScummEngine_v71he::ScummEngine_v71he(OSystem *syst, const DetectorResult &dr) : ScummEngine_v70he(syst, dr) { _auxBlocksNum = 0; memset(_auxBlocks, 0, sizeof(_auxBlocks)); _auxEntriesNum = 0; memset(_auxEntries, 0, sizeof(_auxEntries)); + + _wiz = new Wiz(this); +} + +ScummEngine_v71he::~ScummEngine_v71he() { + delete _wiz; } ScummEngine_v72he::ScummEngine_v72he(OSystem *syst, const DetectorResult &dr) |