From 70640a444de04c554d0f3261719c3b8a59f09fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Sat, 24 Sep 2016 09:38:10 +0200 Subject: [PATCH] XEEN: Fix Cppcheck out-of-bounds warning --- engines/xeen/spells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/xeen/spells.cpp b/engines/xeen/spells.cpp index 681b7b65e6e..23fb947aef1 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);