Skip to content

Commit cc2ce7e

Browse files
authored
Flag waypoints vector as dirty after removal (#2679)
1 parent 36895ec commit cc2ce7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/player.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ void Waypoints::move(int id, glm::vec2 position)
6060
void Waypoints::remove(int id)
6161
{
6262
waypoints.erase(std::remove_if(waypoints.begin(), waypoints.end(), [id](auto& p) { return p.id == id; }), waypoints.end());
63+
dirty = true;
6364
}
6465

6566
std::optional<glm::vec2> Waypoints::get(int id)

0 commit comments

Comments
 (0)