aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/agos.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-06-04 07:04:42 +0000
committerTravis Howell2007-06-04 07:04:42 +0000
commit78c9061cff0a67fd5f146934d0edf8298f91936e (patch)
tree29072bf565084131ff6712fc368791fa324f9f4f /engines/agos/agos.cpp
parentc3a346fb1608d5638ba813822f9cedd0f24b5194 (diff)
downloadscummvm-rg350-78c9061cff0a67fd5f146934d0edf8298f91936e.tar.gz
scummvm-rg350-78c9061cff0a67fd5f146934d0edf8298f91936e.tar.bz2
scummvm-rg350-78c9061cff0a67fd5f146934d0edf8298f91936e.zip
Fix invalid writes in Elvira 1, the original game would overwrite into _window6BackScn.
svn-id: r27078
Diffstat (limited to 'engines/agos/agos.cpp')
-rw-r--r--engines/agos/agos.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index 33737057f8..8efb17a6c4 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -607,7 +607,7 @@ int AGOSEngine::init() {
} else if (getGameType() == GType_WW || getGameType() == GType_ELVIRA2) {
_window4BackScn = (byte *)calloc(224 * 127, 1);
} else if (getGameType() == GType_ELVIRA1) {
- _window4BackScn = (byte *)calloc(224 * 127, 1);
+ _window4BackScn = (byte *)calloc(224 * 144, 1);
_window6BackScn = (byte *)calloc(48 * 80, 1);
}