Skip to content

Commit dc43a08

Browse files
committed
Core/Misc: Fixed new-delete-type-mismatch issue reported by AddressSanitizer
1 parent c4bf996 commit dc43a08

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/common/Collision/Models/GameObjectModel.h

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ struct GameObjectDisplayInfoEntry;
3939
class TC_COMMON_API GameObjectModelOwnerBase
4040
{
4141
public:
42+
virtual ~GameObjectModelOwnerBase() = default;
43+
4244
virtual bool IsSpawned() const { return false; }
4345
virtual uint32 GetDisplayId() const { return 0; }
4446
virtual bool IsInPhase(std::set<uint32> const& /*phases*/) const { return false; }

src/server/game/Entities/GameObject/GameObject.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2619,6 +2619,7 @@ class GameObjectModelOwnerImpl : public GameObjectModelOwnerBase
26192619
{
26202620
public:
26212621
explicit GameObjectModelOwnerImpl(GameObject const* owner) : _owner(owner) { }
2622+
virtual ~GameObjectModelOwnerImpl() = default;
26222623

26232624
virtual bool IsSpawned() const override { return _owner->isSpawned(); }
26242625
virtual uint32 GetDisplayId() const override { return _owner->GetDisplayId(); }

0 commit comments

Comments
 (0)