diff options
| -rw-r--r-- | scumm/scummvm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 4f602df25b..68cf83b074 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1453,7 +1453,7 @@ int toSimpleDir(int dirType, int dir) { }; int num = dirType ? 8 : 4; const int16 *dirtab = &many_direction_tab[dirType * 8]; - for (int i = 1; i < num; i++, dirtab++) { + for (int i = 1; i < num-1; i++, dirtab++) { if (dir >= dirtab[0] && dir <= dirtab[1]) return i; } |
