Added constructor to initialize all members.

This commit is contained in:
Mark de Wever 2008-06-22 12:19:43 +00:00
parent 43241b8d02
commit c5d41ca932

View File

@ -22,6 +22,16 @@ See the COPYING file for more details.
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;