aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/voyeur.cpp
diff options
context:
space:
mode:
authorStrangerke2014-02-26 22:54:13 +0100
committerStrangerke2014-02-26 22:54:13 +0100
commit8215f598612a61e472ec56db0f93fb43908a1348 (patch)
treecf3d2f4db24e612f54bcd820f7d7ab3d5920014d /engines/voyeur/voyeur.cpp
parentccde2d5b7604756f5333ea16807c82ef1b387c10 (diff)
downloadscummvm-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.cpp4
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);
}