aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood
diff options
context:
space:
mode:
authorJohannes Schickel2014-01-11 23:38:06 +0100
committerJohannes Schickel2014-01-11 23:39:32 +0100
commita29160939a845225286c65d8c2946815a99bccae (patch)
treee5358c7a840f3b6248e5f408ad248df84a589359 /engines/neverhood
parent9957965257b6781d34ac2c71e9773ebd972e3d73 (diff)
downloadscummvm-rg350-a29160939a845225286c65d8c2946815a99bccae.tar.gz
scummvm-rg350-a29160939a845225286c65d8c2946815a99bccae.tar.bz2
scummvm-rg350-a29160939a845225286c65d8c2946815a99bccae.zip
NEVERHOOD: Initialize NeverhoodEngine::_console variable to nullptr.
This fixes a nasty crash in case neverhood.dat is not present.
Diffstat (limited to 'engines/neverhood')
-rw-r--r--engines/neverhood/neverhood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/neverhood.cpp b/engines/neverhood/neverhood.cpp
index 6b1f2d9346..1119bfbb08 100644
--- a/engines/neverhood/neverhood.cpp
+++ b/engines/neverhood/neverhood.cpp
@@ -45,7 +45,7 @@
namespace Neverhood {
-NeverhoodEngine::NeverhoodEngine(OSystem *syst, const NeverhoodGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
+NeverhoodEngine::NeverhoodEngine(OSystem *syst, const NeverhoodGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc), _console(nullptr) {
// Setup mixer
if (!_mixer->isReady()) {
warning("Sound initialization failed.");