summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-07-30 19:07:04 -0400
committerWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-08 21:43:19 -0400
commit6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (patch)
tree46a49619034e5e3f41fd3447c4c5727bfbfcdd64 /scene/2d
parent950b205609ce41ab4804196a125e91274eb20258 (diff)
Moved member variables from constructor to initialization list
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/navigation2d.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/navigation2d.h b/scene/2d/navigation2d.h
index e5d71f48c3..54e89de9e2 100644
--- a/scene/2d/navigation2d.h
+++ b/scene/2d/navigation2d.h
@@ -57,9 +57,9 @@ class Navigation2D : public Node2D {
return (a.key == p_key.a.key) ? (b.key < p_key.b.key) : (a.key < p_key.a.key);
};
- EdgeKey(const Point &p_a = Point(), const Point &p_b = Point()) {
- a = p_a;
- b = p_b;
+ EdgeKey(const Point &p_a = Point(), const Point &p_b = Point())
+ : a(p_a),
+ b(p_b) {
if (a.key > b.key) {
SWAP(a, b);
}