Skip to content

Commit

Permalink
DIRECTOR: Fix crash on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent bb71256 commit 6cb2a3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engines/director/director.cpp
Expand Up @@ -55,6 +55,7 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam

_mainArchive = 0;
_macBinary = 0;
_currentPalette = 0;

const Common::FSNode gameDataDir(ConfMan.get("path"));
SearchMan.addSubDirectoryMatching(gameDataDir, "data");
Expand All @@ -75,12 +76,12 @@ Common::Error DirectorEngine::run() {
_lingo->addCode("mci \"open MM\\T005045a.wav type WaveAudio alias T005045a\"\n\
mci \"play T005045a from 22710 to 32872\"", kMovieScript, 1);

#if 0
_lingo->addCode("set x = 1\n\
_lingo->addCode("set x = 1 + 3\n\
set y to 2 -- this set y to 4\n\
put 5 into z\n\
-- some more\n", kMovieScript, 2);
#endif

return Common::kNoError;

//FIXME
_mainArchive = new RIFFArchive();
Expand Down

0 comments on commit 6cb2a3c

Please sign in to comment.