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:
Lioncash 2020-04-07 06:03:11 -04:00
parent f17042ab77
commit 8182688b34
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class IMetaAnim;
class CAnimationDatabase { class CAnimationDatabase {
public: public:
virtual ~CAnimationDatabase() = default;
virtual const std::shared_ptr<IMetaAnim>& GetMetaAnim(s32) const = 0; virtual const std::shared_ptr<IMetaAnim>& GetMetaAnim(s32) const = 0;
virtual u32 GetNumMetaAnims() const = 0; virtual u32 GetNumMetaAnims() const = 0;
virtual const char* GetMetaAnimName(s32) const = 0; virtual const char* GetMetaAnimName(s32) const = 0;