aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorStrangerke2013-01-11 17:12:47 +0100
committerStrangerke2013-01-11 17:12:47 +0100
commitf9f5888c903373d0b8f8d2005d84fbf29c6be343 (patch)
tree69f2fe9dacb37eb655f0baa20f596a633d45b326 /engines/hopkins
parentd963e971303c925fead904e303c39a5e873c885d (diff)
downloadscummvm-rg350-f9f5888c903373d0b8f8d2005d84fbf29c6be343.tar.gz
scummvm-rg350-f9f5888c903373d0b8f8d2005d84fbf29c6be343.tar.bz2
scummvm-rg350-f9f5888c903373d0b8f8d2005d84fbf29c6be343.zip
HOPKINS: (on behalf of fuzzie) Fix regression introduced in d963e971303c925fead904e303c39a5e873c885d
Diffstat (limited to 'engines/hopkins')
-rw-r--r--engines/hopkins/lines.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 7f58709e89..62be29fc20 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -3303,7 +3303,7 @@ int LinesManager::TEST_LIGNE(int a1, int a2, int *a3, int *foundLineIdx, int *fo
for (int idx = _vm->_objectsManager._lastLine + 1; idx < _vm->_linesManager._linesNumb + 1; idx++) {
lineData = Ligne[idx]._lineData;
lineDataEndIdx = Ligne[idx]._lineDataEndIdx;
- if (lineData[2 * (lineDataEndIdx - 1)] == a1 && lineData[1] == a2) {
+ if (lineData[0] == a1 && lineData[1] == a2) {
*a3 = 1;
int posX = lineData[2 * (lineDataEndIdx - 1)];
int posY = lineData[2 * (lineDataEndIdx - 1) + 1];