diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-01 21:29:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 21:29:33 +0100 |
commit | b5707400ebb3daa346fece54c119a5da70852647 (patch) | |
tree | 05a82f8a1434e4fa380d9e78cd34c3bcb33ecb1e /scene/2d/line_2d.cpp | |
parent | dc4483a3a74a4cac83fc0387ea4d09066a0a0e1c (diff) | |
parent | fc27636999a15f88b1f3b1d7101d84a67968ba06 (diff) |
Merge pull request #57525 from AnilBK/vector-use-clear-has
Diffstat (limited to 'scene/2d/line_2d.cpp')
-rw-r--r-- | scene/2d/line_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/line_2d.cpp b/scene/2d/line_2d.cpp index 1a6aaecaa8..7f2290bdc7 100644 --- a/scene/2d/line_2d.cpp +++ b/scene/2d/line_2d.cpp @@ -133,7 +133,7 @@ int Line2D::get_point_count() const { void Line2D::clear_points() { int count = _points.size(); if (count > 0) { - _points.resize(0); + _points.clear(); update(); } } |