[Scummvm-cvs-logs] SF.net SVN: scummvm:[47928] scummvm/trunk/engines/sci/engine/kpathing.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Feb 6 11:44:00 CET 2010


Revision: 47928
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47928&view=rev
Author:   thebluegr
Date:     2010-02-06 10:43:54 +0000 (Sat, 06 Feb 2010)

Log Message:
-----------
Silenced warning that intersectionX and intersectionY could be uninitialized

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kpathing.cpp

Modified: scummvm/trunk/engines/sci/engine/kpathing.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kpathing.cpp	2010-02-06 08:10:56 UTC (rev 47927)
+++ scummvm/trunk/engines/sci/engine/kpathing.cpp	2010-02-06 10:43:54 UTC (rev 47928)
@@ -1605,8 +1605,8 @@
 		}
 
 		bool foundIntersection = true;
-		int32 intersectionX;
-		int32 intersectionY;
+		int32 intersectionX = 0;
+		int32 intersectionY = 0;
 
 		if (qSlope == pSlope) {
 			// If the lines overlap, we test the source and destination points


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list