mirror of https://github.com/AxioDL/metaforce.git
CAnimationDatabase: Add virtual destructor
Given this class is used polymorphically, this is cautionary to prevent any potential undefined behavior from occurring through refactors over time.
This commit is contained in:
parent
f17042ab77
commit
8182688b34
|
@ -12,6 +12,7 @@ class IMetaAnim;
|
|||
|
||||
class CAnimationDatabase {
|
||||
public:
|
||||
virtual ~CAnimationDatabase() = default;
|
||||
virtual const std::shared_ptr<IMetaAnim>& GetMetaAnim(s32) const = 0;
|
||||
virtual u32 GetNumMetaAnims() const = 0;
|
||||
virtual const char* GetMetaAnimName(s32) const = 0;
|
||||
|
|
Loading…
Reference in New Issue