diff --git a/include/SFML/Graphics/Transformable.hpp b/include/SFML/Graphics/Transformable.hpp index 91a0d498..e42af36c 100644 --- a/include/SFML/Graphics/Transformable.hpp +++ b/include/SFML/Graphics/Transformable.hpp @@ -47,6 +47,12 @@ public : //////////////////////////////////////////////////////////// Transformable(); + //////////////////////////////////////////////////////////// + /// \brief Virtual destructor + /// + //////////////////////////////////////////////////////////// + virtual ~Transformable(); + //////////////////////////////////////////////////////////// /// \brief Set the position of the object /// diff --git a/src/SFML/Graphics/Transformable.cpp b/src/SFML/Graphics/Transformable.cpp index 31130bac..004a22b5 100644 --- a/src/SFML/Graphics/Transformable.cpp +++ b/src/SFML/Graphics/Transformable.cpp @@ -45,6 +45,12 @@ myInverseTransformNeedUpdate(true) } +//////////////////////////////////////////////////////////// +Transformable::~Transformable() +{ +} + + //////////////////////////////////////////////////////////// void Transformable::SetPosition(float x, float y) {