Initialize class/struct variables with default values in core/ and drivers/

This commit is contained in:
Rafał Mikrut
2020-11-23 17:38:46 +01:00
parent 18023cc3ed
commit 7bd03b7188
34 changed files with 221 additions and 228 deletions

View File

@ -47,20 +47,20 @@ class AStar : public Reference {
struct Point {
Point() {}
int id;
int id = 0;
Vector3 pos;
real_t weight_scale;
bool enabled;
real_t weight_scale = 0;
bool enabled = false;
OAHashMap<int, Point *> neighbours = 4u;
OAHashMap<int, Point *> unlinked_neighbours = 4u;
// Used for pathfinding.
Point *prev_point;
real_t g_score;
real_t f_score;
uint64_t open_pass;
uint64_t closed_pass;
Point *prev_point = nullptr;
real_t g_score = 0;
real_t f_score = 0;
uint64_t open_pass = 0;
uint64_t closed_pass = 0;
};
struct SortPoints {