[Scummvm-cvs-logs] scummvm master -> 9f641c3d9850a1570872f98bdecbaeb1f39b6be2

Strangerke Strangerke at scummvm.org
Thu May 16 07:36:30 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:
9f641c3d98 HOPKINS: Fix shadowed variable not reported by MSVC


Commit: 9f641c3d9850a1570872f98bdecbaeb1f39b6be2
    https://github.com/scummvm/scummvm/commit/9f641c3d9850a1570872f98bdecbaeb1f39b6be2
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-05-15T22:34:58-07:00

Commit Message:
HOPKINS: Fix shadowed variable not reported by MSVC

Changed paths:
    engines/hopkins/lines.cpp



diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 14320d5..6f690a8 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -945,7 +945,7 @@ int LinesManager::computeRouteIdx(int lineIdx, int dataIdx, int fromX, int fromY
 	if (destX >= minLineX && destX <= maxLineX && destY >= minLineY && destY <= maxLineY) {
 		int curY = destY;
 		int linesIdxUp = -1;
-		bool loopCond = false;
+		loopCond = false;
 		for (;;) {
 			--curY;
 			if (loopCond = checkCollisionLine(destX, curY, &foundDataIdx, &foundLineIdx, startLineIdx, endLineIdx))






More information about the Scummvm-git-logs mailing list