NEVERHOOD: Initialize NeverhoodEngine::_console variable to nullptr.

This fixes a nasty crash in case neverhood.dat is not present.
This commit is contained in:
Johannes Schickel 2014-01-11 23:38:06 +01:00
parent 9957965257
commit a29160939a

View File

@ -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.");