aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-11-29 18:41:42 -0600
committerEugene Sandulenko2018-01-31 17:56:33 +0100
commitb166746b9c698e7550f64c418ef18dc91a951ce2 (patch)
treeb2426c0302b535d1545414858c388e180869722a
parent0eaf44ed91cd63e5aa08d05d9391f8feb02dd093 (diff)
downloadscummvm-rg350-b166746b9c698e7550f64c418ef18dc91a951ce2.tar.gz
scummvm-rg350-b166746b9c698e7550f64c418ef18dc91a951ce2.tar.bz2
scummvm-rg350-b166746b9c698e7550f64c418ef18dc91a951ce2.zip
SCUMM: Fix stack overflow initializing locals
This happens at least when trying to right click on the motorcycle at the start of Full Throttle.
-rw-r--r--engines/scumm/actor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index f48f0ba46b..aa94300041 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -2844,7 +2844,7 @@ void Actor::runActorTalkScript(int f) {
if (_talkScript) {
int script = _talkScript;
- int args[16];
+ int args[NUM_SCRIPT_LOCAL];
memset(args, 0, sizeof(args));
args[1] = f;
args[0] = _number;