From f0ff83e39a097277993e164200d1cf0cdb53f768 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Apr 2020 06:04:56 -0400 Subject: [PATCH] CTransitionDatabase: Add virtual destructor Prevents any undefined behavior from occurring through polymorphic usage. --- Runtime/Character/CTransitionDatabase.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Runtime/Character/CTransitionDatabase.hpp b/Runtime/Character/CTransitionDatabase.hpp index 17266590e..891bbf166 100644 --- a/Runtime/Character/CTransitionDatabase.hpp +++ b/Runtime/Character/CTransitionDatabase.hpp @@ -8,6 +8,7 @@ class IMetaTrans; class CTransitionDatabase { public: + virtual ~CTransitionDatabase() = default; virtual const std::shared_ptr& GetMetaTrans(u32, u32) const = 0; };