aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-11-16 21:15:02 +0100
committerEugene Sandulenko2016-11-19 17:30:16 +0100
commit6ad8df4873f284934ed1d583154ca378286f516d (patch)
treed42e3d1a75749d10a9c7d3bedbda709323933138
parent4888433c46a8e36c84dbc1b4ace7aeee83d12f2d (diff)
downloadscummvm-rg350-6ad8df4873f284934ed1d583154ca378286f516d.tar.gz
scummvm-rg350-6ad8df4873f284934ed1d583154ca378286f516d.tar.bz2
scummvm-rg350-6ad8df4873f284934ed1d583154ca378286f516d.zip
SCUMM: Fix some class initializations
-rw-r--r--engines/scumm/smush/saud_channel.cpp3
-rw-r--r--engines/scumm/smush/smush_player.cpp7
2 files changed, 8 insertions, 2 deletions
diff --git a/engines/scumm/smush/saud_channel.cpp b/engines/scumm/smush/saud_channel.cpp
index ca64b38556..7c41a8734b 100644
--- a/engines/scumm/smush/saud_channel.cpp
+++ b/engines/scumm/smush/saud_channel.cpp
@@ -34,7 +34,8 @@ SaudChannel::SaudChannel(int32 track) : SmushChannel(track),
_nbframes(0),
_markReached(false),
_index(0),
- _keepSize(false) {
+ _keepSize(false),
+ _flags(0) {
}
bool SaudChannel::isTerminated() const {
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index 42ee0115c7..46f1447b7f 100644
--- a/engines/scumm/smush/smush_player.cpp
+++ b/engines/scumm/smush/smush_player.cpp
@@ -73,7 +73,12 @@ public:
StringResource() :
_nbStrings(0),
- _lastId(-1) {
+ _lastId(-1),
+ _lastString(NULL) {
+ for (int i = 0; i < MAX_STRINGS; i++) {
+ _strings[i].id = 0;
+ _strings[i].string = NULL;
+ }
}
~StringResource() {
for (int32 i = 0; i < _nbStrings; i++) {