Skip to content

Commit

Permalink
SHERLOCK: Fix string equality tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp committed May 9, 2015
1 parent c85b14b commit 8306451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sherlock/animation.cpp
Expand Up @@ -179,14 +179,14 @@ const int *Animation::checkForSoundFrames(const Common::String &filename) {

if (_vm->_soundOverride.empty()) {
for (int idx = 0; idx < PROLOGUE_NAMES_COUNT; ++idx) {
if (!filename.equalsIgnoreCase(PROLOGUE_NAMES[idx])) {
if (filename.equalsIgnoreCase(PROLOGUE_NAMES[idx])) {
frames = &PROLOGUE_FRAMES[idx][0];
break;
}
}
} else {
for (int idx = 0; idx < TITLE_NAMES_COUNT; ++idx) {
if (!filename.equalsIgnoreCase(TITLE_NAMES[idx])) {
if (filename.equalsIgnoreCase(TITLE_NAMES[idx])) {
frames = &TITLE_FRAMES[idx][0];
break;
}
Expand Down

0 comments on commit 8306451

Please sign in to comment.