diff options
author | Travis Howell | 2006-10-27 10:36:38 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-27 10:36:38 +0000 |
commit | adb626c783efe2ed9aad0fd554463d3af60b04a7 (patch) | |
tree | d6a43e8acf44de7dbc7c972fb11cb5cc3b59c0d8 /engines | |
parent | 5ab37ca91d62db9cf5540600bb8c1147bd6fc69c (diff) | |
download | scummvm-rg350-adb626c783efe2ed9aad0fd554463d3af60b04a7.tar.gz scummvm-rg350-adb626c783efe2ed9aad0fd554463d3af60b04a7.tar.bz2 scummvm-rg350-adb626c783efe2ed9aad0fd554463d3af60b04a7.zip |
Ooops, fix Elvira 1 regression
svn-id: r24525
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/subroutine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/agos/subroutine.cpp b/engines/agos/subroutine.cpp index 427b120629..52d8e7deac 100644 --- a/engines/agos/subroutine.cpp +++ b/engines/agos/subroutine.cpp @@ -215,8 +215,7 @@ Subroutine *AGOSEngine::getSubroutineByID(uint subroutine_id) { } } - if (subroutine_id != 160) - debug(0,"getSubroutineByID: subroutine %d not found", subroutine_id); + debug(0,"getSubroutineByID: subroutine %d not found", subroutine_id); return NULL; } @@ -689,7 +688,7 @@ void AGOSEngine::readSubroutineLine(Common::SeekableReadStream *in, SubroutineLi } } - size = (q - line_buffer + 1); + size = (q - line_buffer + 2); memcpy(allocateTable(size), line_buffer, size); } |