CTransitionDatabase: Add virtual destructor

Prevents any undefined behavior from occurring through polymorphic
usage.
This commit is contained in:
Lioncash 2020-04-07 06:04:56 -04:00
parent 8182688b34
commit f0ff83e39a
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ class IMetaTrans;
class CTransitionDatabase { class CTransitionDatabase {
public: public:
virtual ~CTransitionDatabase() = default;
virtual const std::shared_ptr<IMetaTrans>& GetMetaTrans(u32, u32) const = 0; virtual const std::shared_ptr<IMetaTrans>& GetMetaTrans(u32, u32) const = 0;
}; };