We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7318221 commit 5a674a7Copy full SHA for 5a674a7
code/autopilot/autopilot.h
@@ -29,16 +29,17 @@
29
class NavPoint
30
{
31
public:
32
- char m_NavName[32];
33
- int flags;
34
- ubyte normal_color[3];
35
- ubyte visited_color[3];
+ char m_NavName[32] = { 0 };
+ int flags = 0;
+ ubyte normal_color[3] = { 0x80, 0x80, 0xFF };
+ ubyte visited_color[3] = { 0xFF, 0xFF, 0x00 };
36
37
- const void *target_obj;
38
- int waypoint_num; //only used when flags & NP_WAYPOINT
+ const void *target_obj = nullptr;
+ int waypoint_num = -1; //only used when flags & NP_WAYPOINT
39
40
const vec3d *GetPosition();
41
42
+ // these assignments should match the initialization
43
void clear()
44
45
m_NavName[0] = 0;
0 commit comments