diff options
author | D G Turner | 2017-01-15 14:26:11 +0000 |
---|---|---|
committer | D G Turner | 2017-01-15 14:26:11 +0000 |
commit | 8a061ee82dea18a351a8905f8f4d2322d4bb8828 (patch) | |
tree | a3f1b9dad1ec44a286d6ca94f62b904e36b94ba4 | |
parent | 906f850a9cfbf128afd9016bf2ae5de5bf230423 (diff) | |
download | scummvm-rg350-8a061ee82dea18a351a8905f8f4d2322d4bb8828.tar.gz scummvm-rg350-8a061ee82dea18a351a8905f8f4d2322d4bb8828.tar.bz2 scummvm-rg350-8a061ee82dea18a351a8905f8f4d2322d4bb8828.zip |
GNAP: Fix Set-But-Unused Variable Compiler Warning.
-rw-r--r-- | engines/gnap/debugger.cpp | 2 | ||||
-rw-r--r-- | engines/gnap/debugger.h | 4 | ||||
-rw-r--r-- | engines/gnap/gnap.cpp | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/engines/gnap/debugger.cpp b/engines/gnap/debugger.cpp index 07f3f6714c..9755f07153 100644 --- a/engines/gnap/debugger.cpp +++ b/engines/gnap/debugger.cpp @@ -25,7 +25,7 @@ namespace Gnap { -Debugger::Debugger(GnapEngine *vm) : GUI::Debugger(), _vm(vm) { +Debugger::Debugger() : GUI::Debugger() { // Register methods registerCmd("hotspots", WRAP_METHOD(Debugger, Cmd_Hotspots)); diff --git a/engines/gnap/debugger.h b/engines/gnap/debugger.h index ac83cc5504..b476fc4e0f 100644 --- a/engines/gnap/debugger.h +++ b/engines/gnap/debugger.h @@ -31,8 +31,6 @@ namespace Gnap { class GnapEngine; class Debugger : public GUI::Debugger { -private: - GnapEngine *_vm; public: /* * Specifies whether to show the hotspot IDs @@ -45,7 +43,7 @@ protected: bool Cmd_Hotspots(int argc, const char **argv); public: - Debugger(GnapEngine *vm); + Debugger(); virtual ~Debugger() {} }; diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp index 809e711e4f..9289053048 100644 --- a/engines/gnap/gnap.cpp +++ b/engines/gnap/gnap.cpp @@ -248,7 +248,7 @@ Common::Error GnapEngine::run() { _sequenceCache = new SequenceCache(_dat); _gameSys = new GameSys(this); _soundMan = new SoundMan(this); - _debugger = new Debugger(this); + _debugger = new Debugger(); _gnap = new PlayerGnap(this); _plat = new PlayerPlat(this); |