aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
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);
}