From d171d07e2f26d17b3132aa6cd7093a264947f51f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 7 Jun 2015 20:34:18 -0400 Subject: SHERLOCK: Fix loadWalk checks against WALK_LIB_NAMES --- engines/sherlock/people.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3