Author: mordante
Date: Sun Jun 22 14:19:43 2008
New Revision: 27405

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27405&view=rev
Log:
Added constructor to initialize all members.

Modified:
    trunk/src/astarnode.hpp

Modified: trunk/src/astarnode.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/astarnode.hpp?rev=27405&r1=27404&r2=27405&view=diff
==============================================================================
--- trunk/src/astarnode.hpp (original)
+++ trunk/src/astarnode.hpp Sun Jun 22 14:19:43 2008
@@ -22,6 +22,16 @@
 struct a_star_node
 {
 public:
+       
+       a_star_node() :
+               g(0.0),
+               h(0.0),
+               loc(),
+               nodeParent(0),
+               isInCloseList(false)
+       {
+       }
+
        double g, h;  // g: already traveled time, h: estimated time still to 
travel
        gamemap::location loc;
        a_star_node* nodeParent;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to