[Scummvm-git-logs] scummvm master -> 70640a444de04c554d0f3261719c3b8a59f09fc9

eriktorbjorn eriktorbjorn at telia.com
Sat Sep 24 09:38:50 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
70640a444d XEEN: Fix Cppcheck out-of-bounds warning


Commit: 70640a444de04c554d0f3261719c3b8a59f09fc9
    https://github.com/scummvm/scummvm/commit/70640a444de04c554d0f3261719c3b8a59f09fc9
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2016-09-24T09:38:10+02:00

Commit Message:
XEEN: Fix Cppcheck out-of-bounds warning

Changed paths:
    engines/xeen/spells.cpp



diff --git a/engines/xeen/spells.cpp b/engines/xeen/spells.cpp
index 681b7b6..23fb947 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);





More information about the Scummvm-git-logs mailing list