[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/games/magazynier
From:       Niels Slot <nielsslot () gmail ! com>
Date:       2010-10-31 12:33:06
Message-ID: 20101031123306.4A995AC89B () svn ! kde ! org
[Download RAW message or body]

SVN commit 1191559 by nielsslot:

Another attempt at fixing the crashes when using mouse navigation.

Initialize all attributes of the PathNode helper class with a valid value.

 M  +1 -1      astar.cpp  


--- trunk/playground/games/magazynier/astar.cpp #1191558:1191559
@@ -35,7 +35,7 @@
 	// F is G + H
 	int F;
 
-	PathNode(QPoint p) : pos(p)
+	PathNode(QPoint p) : pos(p), parent(0), G(0), H(0), F(0)
 	{
 	}
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic