2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-06 16:05:53 +00:00

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

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