From 8182688b349aad04df7445a2680e87390458e905 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Apr 2020 06:03:11 -0400 Subject: [PATCH] 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. --- Runtime/Character/CAnimationDatabase.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Runtime/Character/CAnimationDatabase.hpp b/Runtime/Character/CAnimationDatabase.hpp index 0d7d98c71..93f4c19e2 100644 --- a/Runtime/Character/CAnimationDatabase.hpp +++ b/Runtime/Character/CAnimationDatabase.hpp @@ -12,6 +12,7 @@ class IMetaAnim; class CAnimationDatabase { public: + virtual ~CAnimationDatabase() = default; virtual const std::shared_ptr& GetMetaAnim(s32) const = 0; virtual u32 GetNumMetaAnims() const = 0; virtual const char* GetMetaAnimName(s32) const = 0;