diff --git a/source/Game.cpp b/source/Game.cpp index 42ff94b..2b65e55 100644 --- a/source/Game.cpp +++ b/source/Game.cpp @@ -160,10 +160,12 @@ Game::mouseDown(const sf::Event& event) { case sf::Mouse::Right: mPlayer->setDestination(convertCoordinates(event.mouseButton.x, event.mouseButton.y)); + break; default: break; } } + /** * Handles mouse key up events. */ diff --git a/source/Pathfinder.h b/source/Pathfinder.h index 4138ba0..972a30c 100644 --- a/source/Pathfinder.h +++ b/source/Pathfinder.h @@ -38,7 +38,6 @@ private: * Redundant data as portals are saved twice. */ struct Pathfinder::Portal { - Portal() = default; bool operator==(const Portal& p); sf::Vector2i start; sf::Vector2i end;