Fix 2D Line crash
This commit is contained in:
parent
197b65f32a
commit
2621131549
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue