mirror of https://github.com/AxioDL/metaforce.git
ICollisionFilter: Add virtual destructor
Prevents any potential undefined behavior from occurring through polymorphic use.
This commit is contained in:
parent
f0ff83e39a
commit
40f184bfac
|
@ -11,6 +11,7 @@ protected:
|
|||
explicit ICollisionFilter(CActor& actor) : x4_actor(actor) {}
|
||||
|
||||
public:
|
||||
virtual ~ICollisionFilter() = default;
|
||||
virtual void Filter(const CCollisionInfoList& in, CCollisionInfoList& out) const = 0;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue