Author: mordante
Date: Fri May 1 17:10:35 2009
New Revision: 35374
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35374&view=rev
Log:
Initialize all members.
Modified:
trunk/src/pathfind.cpp
Modified: trunk/src/pathfind.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind.cpp?rev=35374&r1=35373&r2=35374&view=diff
==============================================================================
--- trunk/src/pathfind.cpp (original)
+++ trunk/src/pathfind.cpp Fri May 1 17:10:35 2009
@@ -110,7 +110,7 @@
map_location prev, curr;
bool in;
- node(int moves, int turns, map_location p, map_location c) :
movement_left(moves), turns_left(turns), prev(p), curr(c) { }
+ node(int moves, int turns, map_location p, map_location c) :
movement_left(moves), turns_left(turns), prev(p), curr(c), in(false) { }
node() : movement_left(-1), turns_left(-1),
prev(map_location::null_location), curr(map_location::null_location), in(false)
{ }
bool operator<(const node& o) const {
return turns_left > o.turns_left || (turns_left == o.turns_left
&& movement_left > o.movement_left);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits