mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 05:00:09 +00:00
Added constructor to initialize all members.
This commit is contained in:
parent
43241b8d02
commit
c5d41ca932
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user