aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-07 20:34:18 -0400
committerPaul Gilbert2015-06-07 20:34:18 -0400
commitd171d07e2f26d17b3132aa6cd7093a264947f51f (patch)
treeda9a5d8fa573538e097b12895ad866fea421708c
parentbfdedb68ec96e910892cab53ca0b01c9129f56cf (diff)
downloadscummvm-rg350-d171d07e2f26d17b3132aa6cd7093a264947f51f.tar.gz
scummvm-rg350-d171d07e2f26d17b3132aa6cd7093a264947f51f.tar.bz2
scummvm-rg350-d171d07e2f26d17b3132aa6cd7093a264947f51f.zip
SHERLOCK: Fix loadWalk checks against WALK_LIB_NAMES
-rw-r--r--engines/sherlock/people.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index 65b52c55d5..9416ae9119 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -212,7 +212,7 @@ bool People::loadWalk() {
// See if this is one of the more used Walk Graphics stored in WALK.LIB
for (int libNum = 0; libNum < NUM_IN_WALK_LIB; ++libNum) {
- if (!_data[0]._walkVGSName.compareToIgnoreCase(WALK_LIB_NAMES[libNum])) {
+ if (!_data[idx]._walkVGSName.compareToIgnoreCase(WALK_LIB_NAMES[libNum])) {
_useWalkLib = true;
break;
}