SCUMM: Fix some class initializations

This commit is contained in:
Eugene Sandulenko 2016-11-16 21:15:02 +01:00
parent 4888433c46
commit 6ad8df4873
2 changed files with 8 additions and 2 deletions

View File

@ -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 {

View File

@ -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++) {