From 027006c966d2dfdbb0221ab72c5502fd4a672725 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 1 May 2013 18:04:41 +0200 Subject: [PATCH] Fixed warnings. --- source/Game.cpp | 2 ++ source/Pathfinder.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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;