ICollisionFilter: Add virtual destructor

Prevents any potential undefined behavior from occurring through
polymorphic use.
This commit is contained in:
Lioncash 2020-04-07 06:06:52 -04:00
parent f0ff83e39a
commit 40f184bfac
1 changed files with 1 additions and 0 deletions

View File

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