aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-10-27 10:36:38 +0000
committerTravis Howell2006-10-27 10:36:38 +0000
commitadb626c783efe2ed9aad0fd554463d3af60b04a7 (patch)
treed6a43e8acf44de7dbc7c972fb11cb5cc3b59c0d8 /engines
parent5ab37ca91d62db9cf5540600bb8c1147bd6fc69c (diff)
downloadscummvm-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.cpp5
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);
}