From b166746b9c698e7550f64c418ef18dc91a951ce2 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 29 Nov 2017 18:41:42 -0600 Subject: SCUMM: Fix stack overflow initializing locals This happens at least when trying to right click on the motorcycle at the start of Full Throttle. --- engines/scumm/actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm') 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; -- cgit v1.2.3