[Scummvm-cvs-logs] scummvm master -> f66e702e013fcdf95bb10f4fae7105259c3c9d27

Strangerke Strangerke at scummvm.org
Sun Apr 21 00:29:47 CEST 2013


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:
f66e702e01 HOPKINS: More MAX_LINES cleanup


Commit: f66e702e013fcdf95bb10f4fae7105259c3c9d27
    https://github.com/scummvm/scummvm/commit/f66e702e013fcdf95bb10f4fae7105259c3c9d27
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-04-20T15:28:41-07:00

Commit Message:
HOPKINS: More MAX_LINES cleanup

Changed paths:
    engines/hopkins/lines.cpp



diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 0848260..89bc4ec 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -208,7 +208,7 @@ void LinesManager::addZoneLine(int idx, int fromX, int fromY, int destX, int des
 		_bobZoneFl[bobZoneIdx] = true;
 		_bobZone[bobZoneIdx] = fromY;
 	} else {
-		assert (idx <= MAX_LINES);
+		assert (idx < MAX_LINES);
 		_zoneLine[idx]._zoneData = (int16 *)_vm->_globals->freeMemory((byte *)_zoneLine[idx]._zoneData);
 
 		int distX = abs(fromX - destX);
@@ -2778,7 +2778,7 @@ void LinesManager::clearAllZones() {
  * Remove Zone Line
  */
 void LinesManager::removeZoneLine(int idx) {
-	assert (idx <= MAX_LINES);
+	assert (idx < MAX_LINES);
 	_zoneLine[idx]._zoneData = (int16 *)_vm->_globals->freeMemory((byte *)_zoneLine[idx]._zoneData);
 }
 
@@ -2792,7 +2792,7 @@ void LinesManager::resetLines() {
 
 // Remove Line
 void LinesManager::removeLine(int idx) {
-	assert (idx <= MAX_LINES);
+	assert (idx < MAX_LINES);
 	_lineItem[idx]._lineData = (int16 *)_vm->_globals->freeMemory((byte *)_lineItem[idx]._lineData);
 }
 






More information about the Scummvm-git-logs mailing list