diff options
| author | Rémi Verschelde | 2018-05-25 11:57:28 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-25 11:57:28 +0200 |
| commit | 5ac70d96d0c3ea34b027c6b7004871f70c90a19a (patch) | |
| tree | e7dafd452fefcfdee3ee83ba8cfbb85dc7a6390e /editor/editor_properties.cpp | |
| parent | 0929caea82d20c30c42cde123b7f488fc7404a83 (diff) | |
| parent | b22c1dd0f71ab53304551249a8750870ecb1b504 (diff) | |
| download | godot-5ac70d96d0c3ea34b027c6b7004871f70c90a19a.tar.gz godot-5ac70d96d0c3ea34b027c6b7004871f70c90a19a.tar.zst godot-5ac70d96d0c3ea34b027c6b7004871f70c90a19a.zip | |
Diffstat (limited to 'editor/editor_properties.cpp')
| -rw-r--r-- | editor/editor_properties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index d1968468f..c6d3a43f4 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -500,7 +500,7 @@ public: virtual String get_tooltip(const Point2 &p_pos) const { for (int i = 0; i < flag_rects.size(); i++) { - if (flag_rects[i].has_point(p_pos) && i < names.size()) { + if (i < names.size() && flag_rects[i].has_point(p_pos)) { return names[i]; } } |
