mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
init var.
avoid valgrind warning svn-id: r14722
This commit is contained in:
parent
400582bd9d
commit
bdd0dfef43
@ -638,6 +638,7 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
|
||||
_2byteFontPtr = 0;
|
||||
_V1_talkingActor = 0;
|
||||
|
||||
_skipDrawObject = 0;
|
||||
_heSndSoundId = 0;
|
||||
_heSndOffset = 0;
|
||||
_heSndTimer = 0;
|
||||
|
@ -162,10 +162,9 @@ void Sound::playSound(int soundID, int offset) {
|
||||
byte flags = SoundMixer::FLAG_UNSIGNED | SoundMixer::FLAG_AUTOFREE;
|
||||
bool music = false;
|
||||
|
||||
debugC(DEBUG_SOUND, "playSound #%d (room %d)", soundID,
|
||||
_vm->getResourceRoomNr(rtSound, soundID));
|
||||
|
||||
if ((_vm->_heversion >= 70) && soundID >= 4000) {
|
||||
debugC(DEBUG_SOUND, "playSound #%d", soundID);
|
||||
|
||||
int music_offs, total_size;
|
||||
char buf[32];
|
||||
File musicFile;
|
||||
@ -212,8 +211,12 @@ void Sound::playSound(int soundID, int offset) {
|
||||
_vm->_mixer->playRaw(&_musicChannelHandle, sound, size, 11025, flags, soundID);
|
||||
return;
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
debugC(DEBUG_SOUND, "playSound #%d (room %d)", soundID,
|
||||
_vm->getResourceRoomNr(rtSound, soundID));
|
||||
|
||||
ptr = _vm->getResourceAddress(rtSound, soundID);
|
||||
}
|
||||
|
||||
if (!ptr) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user