aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Kagerer2008-05-12 22:13:33 +0000
committerFlorian Kagerer2008-05-12 22:13:33 +0000
commit6b5709be142f48a124d86e6af80ff31a4c404fc7 (patch)
treeaa3d0b4411363444ba6c72c8b72bb3bcbe3e9ba4
parentc630fbde6a26f196c66c929faead8cc3403d0c99 (diff)
downloadscummvm-rg350-6b5709be142f48a124d86e6af80ff31a4c404fc7.tar.gz
scummvm-rg350-6b5709be142f48a124d86e6af80ff31a4c404fc7.tar.bz2
scummvm-rg350-6b5709be142f48a124d86e6af80ff31a4c404fc7.zip
remove useless double check on sound list entries
svn-id: r32076
-rw-r--r--engines/kyra/staticres.cpp6
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]);
- }
}
}