remove useless double check on sound list entries

svn-id: r32076
This commit is contained in:
Florian Kagerer 2008-05-12 22:13:33 +00:00
parent c630fbde6a
commit 6b5709be14

View File

@ -1226,12 +1226,10 @@ void KyraEngine_HoF::initStaticResource() {
tmpSndLst[i] = new char[len + 1];
tmpSndLst[i][0] = 0;
if (tlkfiles && strlen(seqSoundList[i])) {
if (tlkfiles && len > 1) {
for (int ii = 0; ii < tmpSize; ii++) {
if (strlen(seqSoundList[i])) {
if (!scumm_stricmp(&seqSoundList[i][1], &tlkfiles[ii][1]))
if (!scumm_stricmp(&seqSoundList[i][1], &tlkfiles[ii][1]))
strcpy(tmpSndLst[i], tlkfiles[ii]);
}
}
}