Commit efcb719f authored by louiz’'s avatar louiz’

Fix the mouse selection not ending if it is empty

parent 54c8bd4b
......@@ -159,6 +159,7 @@ void Camera::handle_left_release(const sf::Event&)
this->add_mouse_selection_to_selection();
else
this->set_mouse_selection_to_selection();
this->mouse_selection.end();
}
void Camera::set_mouse_selection_to_selection()
......@@ -201,8 +202,6 @@ void Camera::set_mouse_selection_to_selection()
this->game->get_selection().assign(entities_in_mouse_selection.begin(),
end_own_entities);
}
this->mouse_selection.end();
}
void Camera::add_mouse_selection_to_selection()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment