Merge pull request #29557 from qarmin/fix_2d_line_crash

Fix 2D Line crash
This commit is contained in:
Gilles Roudière 2019-06-07 22:52:59 +02:00 committed by GitHub
commit 693582f008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}