diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2019-06-07 22:52:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 22:52:59 +0200 |
commit | 693582f00837bb4ce4fb3ce91d2366ee359eecf4 (patch) | |
tree | 18bbd8fd3f52ebdd68ff2a8d9689a615b9e22029 /scene/2d/line_2d.cpp | |
parent | 197b65f32ac811f79bc5599fbfe8cf83914b6873 (diff) | |
parent | 2621131549164d0a6107d7c957a792c1707d6ce4 (diff) |
Merge pull request #29557 from qarmin/fix_2d_line_crash
Fix 2D Line crash
Diffstat (limited to 'scene/2d/line_2d.cpp')
-rw-r--r-- | scene/2d/line_2d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/line_2d.cpp b/scene/2d/line_2d.cpp index ba06b3ebff..e116d404d6 100644 --- a/scene/2d/line_2d.cpp +++ b/scene/2d/line_2d.cpp @@ -105,6 +105,7 @@ void Line2D::set_point_position(int i, Vector2 pos) { } Vector2 Line2D::get_point_position(int i) const { + ERR_FAIL_INDEX_V(i, _points.size(), Vector2()) return _points.get(i); } |