mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 23:57:32 +00:00
NEVERHOOD: Initialize NeverhoodEngine::_console variable to nullptr.
This fixes a nasty crash in case neverhood.dat is not present.
This commit is contained in:
parent
9957965257
commit
a29160939a
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user