Fix regression introduced with last commit. (Caused crash in Amiga version)

svn-id: r30397
This commit is contained in:
Johannes Schickel 2008-01-11 00:33:45 +00:00
parent cd2751c698
commit f510fb6b14

View File

@ -176,7 +176,7 @@ public:
void voiceStop();
protected:
const char *fileListEntry(int file) const { return (file < _soundDataList->_fileListLen) ? _soundDataList->_fileList[file] : ""; }
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; }