diff options
| author | Fabio Alessandrelli | 2015-04-10 23:09:59 +0000 |
|---|---|---|
| committer | Fabio Alessandrelli | 2015-04-14 16:46:52 +0000 |
| commit | e1bfbcfd4230b3224d5700914f6457ea869214f0 (patch) | |
| tree | 30ca2ead795a63e223f282e932d72ad0d2423b06 /servers/physics_2d | |
| parent | bad445066c3659b5cb0a5d852a2867b67359aead (diff) | |
| download | godot-e1bfbcfd4230b3224d5700914f6457ea869214f0.tar.gz godot-e1bfbcfd4230b3224d5700914f6457ea869214f0.tar.zst godot-e1bfbcfd4230b3224d5700914f6457ea869214f0.zip | |
Fix operator definition for AreaCMP
Diffstat (limited to 'servers/physics_2d')
| -rw-r--r-- | servers/physics_2d/body_2d_sw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/body_2d_sw.h b/servers/physics_2d/body_2d_sw.h index 516fab61e..1de8e9e52 100644 --- a/servers/physics_2d/body_2d_sw.h +++ b/servers/physics_2d/body_2d_sw.h @@ -92,7 +92,7 @@ class Body2DSW : public CollisionObject2DSW { Area2DSW *area; _FORCE_INLINE_ bool operator==(const AreaCMP& p_cmp) const { return area->get_self() == p_cmp.area->get_self();} - _FORCE_INLINE_ bool operator<(const AreaCMP a) const { return area->get_priority() < a.area->get_priority();} + _FORCE_INLINE_ bool operator<(const AreaCMP& p_cmp) const { return area->get_priority() < p_cmp.area->get_priority();} _FORCE_INLINE_ AreaCMP() {} _FORCE_INLINE_ AreaCMP(Area2DSW *p_area) { area=p_area;} }; |
