diff options
author | Gregory Montoir | 2007-11-20 21:00:41 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-11-20 21:00:41 +0000 |
commit | cbd9963af7f157e70182a8fd40ab2ffac1194449 (patch) | |
tree | 1679468154a7c5f3f87a9fb5a940181adbca0fc2 | |
parent | 3cb597a0463ccdaf295a4cf65ba5b0dc50b48732 (diff) | |
download | scummvm-rg350-cbd9963af7f157e70182a8fd40ab2ffac1194449.tar.gz scummvm-rg350-cbd9963af7f157e70182a8fd40ab2ffac1194449.tar.bz2 scummvm-rg350-cbd9963af7f157e70182a8fd40ab2ffac1194449.zip |
fix bug #1834852
svn-id: r29586
-rw-r--r-- | engines/touche/touche.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index bb02b7e58c..935a528e70 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -3049,7 +3049,7 @@ void ToucheEngine::buildWalkPath(int dstPosX, int dstPosY, int keyChar) { } } key->prevWalkDataNum = minWalkDataNum; - if (key->walkDataNum == key->prevWalkDataNum && key->walkPointsList[1] == -1) { + if (key->walkDataNum == key->prevWalkDataNum && key->walkPointsList[1] == -1 && minWalkDataNum != -1) { if (key->walkPointsList[0] == _programWalkTable[minWalkDataNum].point1 || key->walkPointsList[0] == _programWalkTable[minWalkDataNum].point2) { ++key->walkPointsListIndex; } |