From adb626c783efe2ed9aad0fd554463d3af60b04a7 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 27 Oct 2006 10:36:38 +0000 Subject: [PATCH] Ooops, fix Elvira 1 regression svn-id: r24525 --- engines/agos/subroutine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engines/agos/subroutine.cpp b/engines/agos/subroutine.cpp index 427b1206296..52d8e7deac9 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); }