mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
SCUMM: Fix some class initializations
This commit is contained in:
parent
4888433c46
commit
6ad8df4873
@ -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 {
|
||||
|
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user