diff options
Diffstat (limited to 'engines/prince')
-rw-r--r-- | engines/prince/debugger.cpp | 2 | ||||
-rw-r--r-- | engines/prince/graphics.cpp | 2 | ||||
-rw-r--r-- | engines/prince/mob.h | 2 | ||||
-rw-r--r-- | engines/prince/sound.cpp | 1 |
4 files changed, 6 insertions, 1 deletions
diff --git a/engines/prince/debugger.cpp b/engines/prince/debugger.cpp index fc216e0cfb..661b563944 100644 --- a/engines/prince/debugger.cpp +++ b/engines/prince/debugger.cpp @@ -37,6 +37,8 @@ Debugger::Debugger(PrinceEngine *vm, InterpreterFlags *flags) : GUI::Debugger(), registerCmd("initroom", WRAP_METHOD(Debugger, Cmd_InitRoom)); registerCmd("changecursor", WRAP_METHOD(Debugger, Cmd_ChangeCursor)); registerCmd("additem", WRAP_METHOD(Debugger, Cmd_AddItem)); + + _cursorNr = 0; } static int strToInt(const char *s) { diff --git a/engines/prince/graphics.cpp b/engines/prince/graphics.cpp index d5178efc17..ea8c52a45b 100644 --- a/engines/prince/graphics.cpp +++ b/engines/prince/graphics.cpp @@ -44,6 +44,8 @@ GraphicsMan::GraphicsMan(PrinceEngine *vm) : _vm(vm), _changed(false) { _shadowTable70 = (byte *)malloc(256); _shadowTable50 = (byte *)malloc(256); + + _roomBackground = 0; } GraphicsMan::~GraphicsMan() { diff --git a/engines/prince/mob.h b/engines/prince/mob.h index 0ea610dd8f..863fd3a319 100644 --- a/engines/prince/mob.h +++ b/engines/prince/mob.h @@ -35,7 +35,7 @@ namespace Prince { class Mob { public: - Mob() : _name(""), _examText("") {} + Mob() : _name(""), _examText(""), _visible(false), _type(0), _mask(0), _examDirection(kDirL), _useDirection(kDirL) {} bool loadFromStream(Common::SeekableReadStream &stream); diff --git a/engines/prince/sound.cpp b/engines/prince/sound.cpp index c9746842ef..22db9c4998 100644 --- a/engines/prince/sound.cpp +++ b/engines/prince/sound.cpp @@ -118,6 +118,7 @@ const uint8 MusicPlayer::_musRoomTable[] = { MusicPlayer::MusicPlayer(PrinceEngine *vm) : _vm(vm) { _data = nullptr; + _dataSize = 0; _isGM = false; MidiPlayer::createDriver(); |