IVaryingAnimationTimeScale: Add virtual destructor

This is used in a polymorphic context, so we should be specifying a
virtual destructor to prevent undefined behavior when deleting instances
from the base class.
This commit is contained in:
Lioncash 2020-03-31 23:55:13 -04:00
parent 11c40415f5
commit 7117e298d9
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
namespace urde { namespace urde {
class IVaryingAnimationTimeScale { class IVaryingAnimationTimeScale {
public: public:
virtual ~IVaryingAnimationTimeScale() = default;
virtual u32 GetType() const = 0; virtual u32 GetType() const = 0;
virtual float VTimeScaleIntegral(const float&, const float&) const = 0; virtual float VTimeScaleIntegral(const float&, const float&) const = 0;
virtual float VFindUpperLimit(const float&, const float&) const = 0; virtual float VFindUpperLimit(const float&, const float&) const = 0;