From 6b5709be142f48a124d86e6af80ff31a4c404fc7 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Mon, 12 May 2008 22:13:33 +0000 Subject: remove useless double check on sound list entries svn-id: r32076 --- engines/kyra/staticres.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/kyra') 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]); - } } } -- cgit v1.2.3