Author: mordante
Date: Fri May 1 17:10:18 2009
New Revision: 35370
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35370&view=rev
Log:
Initialize all members.
Modified:
trunk/src/astarsearch.cpp
Modified: trunk/src/astarsearch.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/astarsearch.cpp?rev=35370&r1=35369&r2=35370&view=diff
==============================================================================
--- trunk/src/astarsearch.cpp (original)
+++ trunk/src/astarsearch.cpp Fri May 1 17:10:18 2009
@@ -64,11 +64,19 @@
*/
unsigned in;
- node() : g(1e25), t(1e25), in(search_counter) { }
+ node()
+ : g(1e25)
+ , h(1e25)
+ , t(1e25)
+ , curr()
+ , prev()
+ , in(search_counter)
+ {
+ }
node(double s, const map_location &c, const map_location &p, const
map_location &dst, bool i) :
g(s), h(heuristic(c, dst)), t(g + h), curr(c), prev(p),
in(search_counter + i)
{ }
-
+
bool operator<(const node& o) const {
return t < o.t;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits