diff options
author | Max Horn | 2004-03-28 10:55:32 +0000 |
---|---|---|
committer | Max Horn | 2004-03-28 10:55:32 +0000 |
commit | ce6e07db125c78302f2326edaf3b0e99aae09405 (patch) | |
tree | d91975c7742eaccaed55ec951991dde99ac180f7 /scumm | |
parent | fdd44a242dbd02d2e984d472fbbf3d14369a32ca (diff) | |
download | scummvm-rg350-ce6e07db125c78302f2326edaf3b0e99aae09405.tar.gz scummvm-rg350-ce6e07db125c78302f2326edaf3b0e99aae09405.tar.bz2 scummvm-rg350-ce6e07db125c78302f2326edaf3b0e99aae09405.zip |
Fix bad array size (part of bug report #924685)
svn-id: r13394
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/insane/insane.cpp | 2 | ||||
-rw-r--r-- | scumm/insane/insane.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scumm/insane/insane.cpp b/scumm/insane/insane.cpp index 34f05f6131..4f60a02b8d 100644 --- a/scumm/insane/insane.cpp +++ b/scumm/insane/insane.cpp @@ -437,7 +437,7 @@ void Insane::initvars(void) { init_actStruct(1, 2, 13, 1, 1, 0, 0, 0); init_actStruct(1, 3, 13, 1, 1, 0, 0, 0); - for (i = 0; i < 9; i++) + for (i = 0; i < 10; i++) for (j = 0; j < 10; j++) _enemyState[i][j] = 0; } diff --git a/scumm/insane/insane.h b/scumm/insane/insane.h index cb1121d44e..8b507965bf 100644 --- a/scumm/insane/insane.h +++ b/scumm/insane/insane.h @@ -157,7 +157,7 @@ class Insane { int16 _smush_frameNum1; int16 _smush_frameNum2; byte _smush_earlyFluContents[0x31a]; - int16 _enemyState[9][10]; + int16 _enemyState[10][10]; byte _iactBits[0x80]; int16 _mainRoadPos; int16 _posBrokenCar; |