diff options
author | Strangerke | 2014-02-26 22:54:13 +0100 |
---|---|---|
committer | Strangerke | 2014-02-26 22:54:13 +0100 |
commit | 8215f598612a61e472ec56db0f93fb43908a1348 (patch) | |
tree | cf3d2f4db24e612f54bcd820f7d7ab3d5920014d /engines/voyeur/voyeur.cpp | |
parent | ccde2d5b7604756f5333ea16807c82ef1b387c10 (diff) | |
download | scummvm-rg350-8215f598612a61e472ec56db0f93fb43908a1348.tar.gz scummvm-rg350-8215f598612a61e472ec56db0f93fb43908a1348.tar.bz2 scummvm-rg350-8215f598612a61e472ec56db0f93fb43908a1348.zip |
VOYEUR: Remove setVm from Debugger
Diffstat (limited to 'engines/voyeur/voyeur.cpp')
-rw-r--r-- | engines/voyeur/voyeur.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp index abb539f883..b1ead5a8c4 100644 --- a/engines/voyeur/voyeur.cpp +++ b/engines/voyeur/voyeur.cpp @@ -40,6 +40,7 @@ VoyeurEngine::VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc) _defaultFontInfo(3, 0xff, 0xff, 0, 0, ALIGN_LEFT, 0, Common::Point(), 1, 1, Common::Point(1, 1), 1, 0, 0) { _voy = nullptr; + _debugger = nullptr; _bVoy = NULL; _iForceDeath = ConfMan.getInt("boot_param"); @@ -68,6 +69,7 @@ VoyeurEngine::VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc) VoyeurEngine::~VoyeurEngine() { delete _bVoy; delete _voy; + delete _debugger; } Common::Error VoyeurEngine::run() { @@ -94,11 +96,11 @@ int VoyeurEngine::getRandomNumber(int maxNumber) { } void VoyeurEngine::initializeManagers() { - _debugger.setVm(this); _eventsManager.setVm(this); _filesManager.setVm(this); _graphicsManager.setVm(this); _soundManager.setVm(this); + _debugger = new Debugger(this); _voy = new SVoy(this); } |