1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Fix 2D Line crash

(cherry picked from commit 2621131549)
This commit is contained in:
qarmin
2019-06-06 21:09:37 +02:00
committed by Rémi Verschelde
parent 1f5f2d3ce8
commit 03a1570a74

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