mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[6989] Always initilize WaypointBehavior pointer to NULL in WaypointNode. Small code Cleanup.
This commit is contained in:
parent
61063ad94c
commit
151e9e7012
3 changed files with 11 additions and 10 deletions
|
|
@ -45,7 +45,7 @@ struct WaypointNode
|
|||
float orientation;
|
||||
uint32 delay;
|
||||
WaypointBehavior * behavior;
|
||||
WaypointNode() {}
|
||||
WaypointNode() : x(0.0f), y(0.0f), z(0.0f), orientation(0.0f), delay(0), behavior(NULL) {}
|
||||
WaypointNode(float _x, float _y, float _z, float _o, uint32 _delay, WaypointBehavior * _behavior)
|
||||
: x(_x), y(_y), z(_z), orientation(_o), delay(_delay), behavior(_behavior) {}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue