aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/parse_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2006-05-01 16:04:53 +0000
committerSven Hesse2006-05-01 16:04:53 +0000
commit61a0266a926208bd45e1c378f6062921b03f8724 (patch)
treee5a091069549e80492a98822d8aa6f50017605ef /engines/gob/parse_v2.cpp
parent49dd5402139a0d4dfcce3ff7464adf4e8771da10 (diff)
downloadscummvm-rg350-61a0266a926208bd45e1c378f6062921b03f8724.tar.gz
scummvm-rg350-61a0266a926208bd45e1c378f6062921b03f8724.tar.bz2
scummvm-rg350-61a0266a926208bd45e1c378f6062921b03f8724.zip
More stubs; GOB2 goes in-game for a second, then segfaults in the
Global-constructor; valgrind shows invalid reads in parseValExpr() and parseExpr() while accessing _inter_variables and _inter_execPtr svn-id: r22262
Diffstat (limited to 'engines/gob/parse_v2.cpp')
-rw-r--r--engines/gob/parse_v2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/gob/parse_v2.cpp b/engines/gob/parse_v2.cpp
index dce5c37995..63aaadb8e4 100644
--- a/engines/gob/parse_v2.cpp
+++ b/engines/gob/parse_v2.cpp
@@ -365,6 +365,8 @@ int16 Parse_v2::parseExpr(char stopToken, byte *arg_2) {
int16 stkPos;
int16 brackStart;
+ memset(operStack, 0, 20);
+
stkPos = -1;
operPtr = (char *)(operStack - 1);
valPtr = values - 1;