diff options
-rw-r--r-- | engines/kyra/sound.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h index 3aceb97072..e8049a2e15 100644 --- a/engines/kyra/sound.h +++ b/engines/kyra/sound.h @@ -177,8 +177,8 @@ public: protected: const char *fileListEntry(int file) const { return (_soundDataList != 0 && file >= 0 && file < _soundDataList->_fileListLen) ? _soundDataList->_fileList[file] : ""; } - const void *cdaData() const { return _soundDataList->_cdaTracks; } - const int cdaTrackNum() const { return _soundDataList->_cdaNumTracks; } + const void *cdaData() const { return _soundDataList != 0 ? _soundDataList->_cdaTracks : 0; } + const int cdaTrackNum() const { return _soundDataList != 0 ? _soundDataList->_cdaNumTracks : 0; } int _musicEnabled; bool _sfxEnabled; |