mirror of https://github.com/AxioDL/metaforce.git
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:
parent
11c40415f5
commit
7117e298d9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue