summaryrefslogtreecommitdiff
path: root/servers/physics_2d/godot_area_2d.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-21 01:06:21 +0200
committerGitHub <noreply@github.com>2022-05-21 01:06:21 +0200
commit8adf04804550957f43c810b13fcce66dd76e5fd8 (patch)
tree2ee58365f1092587277770ceaedfc1e35454acfd /servers/physics_2d/godot_area_2d.h
parentf4126cc902b0cbb100bcf1b37ee15df5a8430d21 (diff)
parent45af29da8095af16729955117a165d23e77cd740 (diff)
Merge pull request #61194 from reduz/new-hash-set
Add a new HashSet template
Diffstat (limited to 'servers/physics_2d/godot_area_2d.h')
-rw-r--r--servers/physics_2d/godot_area_2d.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/physics_2d/godot_area_2d.h b/servers/physics_2d/godot_area_2d.h
index b825ea5cdb..35dad9d2c3 100644
--- a/servers/physics_2d/godot_area_2d.h
+++ b/servers/physics_2d/godot_area_2d.h
@@ -93,7 +93,7 @@ class GodotArea2D : public GodotCollisionObject2D {
HashMap<BodyKey, BodyState, BodyKey> monitored_bodies;
HashMap<BodyKey, BodyState, BodyKey> monitored_areas;
- RBSet<GodotConstraint2D *> constraints;
+ HashSet<GodotConstraint2D *> constraints;
virtual void _shapes_changed() override;
void _queue_monitor_update();
@@ -142,7 +142,7 @@ public:
_FORCE_INLINE_ void add_constraint(GodotConstraint2D *p_constraint) { constraints.insert(p_constraint); }
_FORCE_INLINE_ void remove_constraint(GodotConstraint2D *p_constraint) { constraints.erase(p_constraint); }
- _FORCE_INLINE_ const RBSet<GodotConstraint2D *> &get_constraints() const { return constraints; }
+ _FORCE_INLINE_ const HashSet<GodotConstraint2D *> &get_constraints() const { return constraints; }
_FORCE_INLINE_ void clear_constraints() { constraints.clear(); }
void set_monitorable(bool p_monitorable);