diff options
author | Florian Kagerer | 2008-05-12 22:13:33 +0000 |
---|---|---|
committer | Florian Kagerer | 2008-05-12 22:13:33 +0000 |
commit | 6b5709be142f48a124d86e6af80ff31a4c404fc7 (patch) | |
tree | aa3d0b4411363444ba6c72c8b72bb3bcbe3e9ba4 /engines | |
parent | c630fbde6a26f196c66c929faead8cc3403d0c99 (diff) | |
download | scummvm-rg350-6b5709be142f48a124d86e6af80ff31a4c404fc7.tar.gz scummvm-rg350-6b5709be142f48a124d86e6af80ff31a4c404fc7.tar.bz2 scummvm-rg350-6b5709be142f48a124d86e6af80ff31a4c404fc7.zip |
remove useless double check on sound list entries
svn-id: r32076
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/staticres.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index 3904ae550f..36703aafba 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -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]); - } } } |