aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-31 12:22:53 +0200
committerEugene Sandulenko2016-05-31 17:12:18 +0200
commit378f8573b04e55cd348d5b6bcfdd485d5a4c0336 (patch)
tree8bbb8d626b0dae2d3d23b59671cfe09bb17f7ce3 /engines
parent26220269437abc8def270bc2730f56191705fbb1 (diff)
downloadscummvm-rg350-378f8573b04e55cd348d5b6bcfdd485d5a4c0336.tar.gz
scummvm-rg350-378f8573b04e55cd348d5b6bcfdd485d5a4c0336.tar.bz2
scummvm-rg350-378f8573b04e55cd348d5b6bcfdd485d5a4c0336.zip
PRINCE: Object initialization
Diffstat (limited to 'engines')
-rw-r--r--engines/prince/debugger.cpp2
-rw-r--r--engines/prince/graphics.cpp2
-rw-r--r--engines/prince/mob.h2
-rw-r--r--engines/prince/sound.cpp1
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();