aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-28 11:36:33 +0300
committerEugene Sandulenko2016-07-28 11:36:33 +0300
commit1fe60f10fabe62edafb678ef178e8c2abbbf1216 (patch)
tree9b3f85122b3dab5b5f7840f5f24ed7f8dcb9589c /engines/gnap
parent2d428e276074effd0052798428351123866f6d99 (diff)
downloadscummvm-rg350-1fe60f10fabe62edafb678ef178e8c2abbbf1216.tar.gz
scummvm-rg350-1fe60f10fabe62edafb678ef178e8c2abbbf1216.tar.bz2
scummvm-rg350-1fe60f10fabe62edafb678ef178e8c2abbbf1216.zip
GNAP: Move debug channel registration to the top of the engine constructor
Diffstat (limited to 'engines/gnap')
-rw-r--r--engines/gnap/gnap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp
index 6a03bf8eb0..809e711e4f 100644
--- a/engines/gnap/gnap.cpp
+++ b/engines/gnap/gnap.cpp
@@ -91,9 +91,10 @@ static const char *kSceneNames[] = {
GnapEngine::GnapEngine(OSystem *syst, const ADGameDescription *gd) :
Engine(syst), _gameDescription(gd) {
- _random = new Common::RandomSource("gnap");
DebugMan.addDebugChannel(kDebugBasic, "basic", "Basic debug level");
+ _random = new Common::RandomSource("gnap");
+
Engine::syncSoundSettings();
_exe = nullptr;