diff --git a/source/sprites/Enemy.h b/source/sprites/Enemy.h index 8b56c03..7b4e149 100644 --- a/source/sprites/Enemy.h +++ b/source/sprites/Enemy.h @@ -18,7 +18,7 @@ public: const sf::Vector2f& position); private: - virtual void onThink(int elapsed); + virtual void onThink(int elapsed) override; }; #endif /* DG_ENEMY_H_ */ diff --git a/source/sprites/Player.h b/source/sprites/Player.h index ffc4e35..fc4aee1 100644 --- a/source/sprites/Player.h +++ b/source/sprites/Player.h @@ -41,7 +41,7 @@ public: using Character::reload; private: - void onThink(int elapsed); + void onThink(int elapsed) override; private: sf::Vector2f mCrosshairPosition; //< Relative position of the point to fire at (mouse cursor).