diff options
author | Sven Hesse | 2009-12-30 23:21:33 +0000 |
---|---|---|
committer | Sven Hesse | 2009-12-30 23:21:33 +0000 |
commit | 9c430b5298dbd4fcb49fdf1e0ec2460448d4a11a (patch) | |
tree | 3dff384838594fd07e0f65bafc18f2364136e001 /engines/gob/goblin_v1.cpp | |
parent | c27c9a84c28f324fae34d5e36984955060835070 (diff) | |
download | scummvm-rg350-9c430b5298dbd4fcb49fdf1e0ec2460448d4a11a.tar.gz scummvm-rg350-9c430b5298dbd4fcb49fdf1e0ec2460448d4a11a.tar.bz2 scummvm-rg350-9c430b5298dbd4fcb49fdf1e0ec2460448d4a11a.zip |
Fixing an out of array bounds read
svn-id: r46784
Diffstat (limited to 'engines/gob/goblin_v1.cpp')
-rw-r--r-- | engines/gob/goblin_v1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |