2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-06 20:55:34 +00:00

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

View File

@ -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;