diff options
author | Torbjörn Andersson | 2016-09-24 09:38:10 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2016-09-24 09:38:10 +0200 |
commit | 70640a444de04c554d0f3261719c3b8a59f09fc9 (patch) | |
tree | 841f8edb9b97886e009e02e7bfeddba3f78bfd78 /engines/xeen | |
parent | 31ffa223876130532351a4394e32b2f311b38104 (diff) | |
download | scummvm-rg350-70640a444de04c554d0f3261719c3b8a59f09fc9.tar.gz scummvm-rg350-70640a444de04c554d0f3261719c3b8a59f09fc9.tar.bz2 scummvm-rg350-70640a444de04c554d0f3261719c3b8a59f09fc9.zip |
XEEN: Fix Cppcheck out-of-bounds warning
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/spells.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/spells.cpp b/engines/xeen/spells.cpp index 681b7b65e6..23fb947aef 100644 --- a/engines/xeen/spells.cpp +++ b/engines/xeen/spells.cpp @@ -437,7 +437,7 @@ void Spells::detectMonster() { int grid[7][7]; SpriteResource sprites(isDarkCc ? "detectmn.icn" : "detctmon.icn"); - Common::fill(&grid[0][0], &grid[7][7], 0); + Common::fill(&grid[0][0], &grid[6][6], 0); w.open(); w.writeString(Res.DETECT_MONSTERS); |