SCI: Return correct kSciAudioCD value on failure

SSCI returns 0 when CD audio track can't be selected
This commit is contained in:
sluicebox 2020-11-27 00:37:04 -08:00
parent c71db70d25
commit 3c71df687b

View File

@ -515,8 +515,7 @@ int AudioPlayer::audioCdPlay(int track, int start, int duration) {
// Subtract one from track. KQ6 starts at track 1, while ScummVM
// ignores the data track and considers track 2 to be track 1.
g_system->getAudioCDManager()->play(track - 1, 1, start, duration);
return 1;
return g_system->getAudioCDManager()->play(track - 1, 1, start, duration) ? 1 : 0;
} else {
// Jones in the Fast Lane CD Audio format
uint32 length = 0;