From 9c430b5298dbd4fcb49fdf1e0ec2460448d4a11a Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Wed, 30 Dec 2009 23:21:33 +0000 Subject: Fixing an out of array bounds read svn-id: r46784 --- engines/gob/goblin_v1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gob') diff --git a/engines/gob/goblin_v1.cpp b/engines/gob/goblin_v1.cpp index bc0878c426..f55fec433c 100644 --- a/engines/gob/goblin_v1.cpp +++ b/engines/gob/goblin_v1.cpp @@ -618,7 +618,7 @@ void Goblin_v1::moveAdvance(Mult::Mult_Object *obj, Gob_Object *gobDesc, if (_forceNextState[0] != -1) { gobDesc->nextState = _forceNextState[0]; - for (i = 0; i < 10; i++) + for (i = 0; i < 9; i++) _forceNextState[i] = _forceNextState[i + 1]; } -- cgit v1.2.3