diff options
author | Strangerke | 2013-01-10 21:40:46 +0100 |
---|---|---|
committer | Strangerke | 2013-01-10 21:40:46 +0100 |
commit | de93e44b16375a272618722745287fdefd2547de (patch) | |
tree | 26365324a61eea065c7e59333549d10f467a547b | |
parent | 271087850f7da414ee6daf259e0b7d41e196a66c (diff) | |
download | scummvm-rg350-de93e44b16375a272618722745287fdefd2547de.tar.gz scummvm-rg350-de93e44b16375a272618722745287fdefd2547de.tar.bz2 scummvm-rg350-de93e44b16375a272618722745287fdefd2547de.zip |
HOPKINS: (on behalf of fuzzie) Fix regression introduced in 66cc7d099e3787b50a45d289652e9f258a2a805d
-rw-r--r-- | engines/hopkins/lines.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp index d0865bb179..44dc5b06f3 100644 --- a/engines/hopkins/lines.cpp +++ b/engines/hopkins/lines.cpp @@ -428,9 +428,9 @@ void LinesManager::initRoute() { ++lineIdx; } - _vm->_objectsManager._lastLine = lineIdx + 1; + _vm->_objectsManager._lastLine = lineIdx; for (int idx = 1; idx < 400; idx++) { - if ((Ligne[idx]._lineDataEndIdx < _vm->_globals._maxLineLength) && (idx != _vm->_objectsManager._lastLine)) { + if ((Ligne[idx]._lineDataEndIdx < _vm->_globals._maxLineLength) && (idx != _vm->_objectsManager._lastLine + 1)) { Ligne[idx].field6 = Ligne[idx - 1].field6; Ligne[idx].field8 = Ligne[idx - 1].field8; } |