XEEN: Fix Cppcheck out-of-bounds warning

This commit is contained in:
Torbjörn Andersson 2016-09-24 09:38:10 +02:00
parent 31ffa22387
commit 70640a444d

View File

@ -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);