aboutsummaryrefslogtreecommitdiff
path: root/engines/plumbers
diff options
context:
space:
mode:
Diffstat (limited to 'engines/plumbers')
-rw-r--r--engines/plumbers/console.cpp2
-rw-r--r--engines/plumbers/console.h5
-rw-r--r--engines/plumbers/plumbers.cpp2
3 files changed, 3 insertions, 6 deletions
diff --git a/engines/plumbers/console.cpp b/engines/plumbers/console.cpp
index f005b60769..730a74e2e7 100644
--- a/engines/plumbers/console.cpp
+++ b/engines/plumbers/console.cpp
@@ -27,7 +27,7 @@
namespace Plumbers {
-Console::Console(Plumbers::PlumbersGame *vm) : _vm(vm) {
+Console::Console() {
_allowSkip = false;
registerCmd("allowSkip", WRAP_METHOD(Console, Cmd_allowSkip));
}
diff --git a/engines/plumbers/console.h b/engines/plumbers/console.h
index c849678419..cb50834f36 100644
--- a/engines/plumbers/console.h
+++ b/engines/plumbers/console.h
@@ -30,13 +30,10 @@ namespace Plumbers {
class PlumbersGame;
class Console : public GUI::Debugger {
-private:
- PlumbersGame *_vm;
-
public:
bool _allowSkip;
- explicit Console(Plumbers::PlumbersGame *vm);
+ explicit Console();
virtual ~Console(void) {}
bool Cmd_allowSkip(int argc, const char** argv);
diff --git a/engines/plumbers/plumbers.cpp b/engines/plumbers/plumbers.cpp
index f0445e51eb..9904acb33a 100644
--- a/engines/plumbers/plumbers.cpp
+++ b/engines/plumbers/plumbers.cpp
@@ -89,7 +89,7 @@ static const byte cursorPalette[] = {
Common::Error PlumbersGame::run() {
initGraphics(640, 480);
- _console = new Console(this);
+ _console = new Console();
CursorMan.replaceCursor(MOUSECURSOR_SCI, 11, 16, 0, 0, 0);
CursorMan.replaceCursorPalette(cursorPalette, 0, 3);