Core/Misc: Fixed new-delete-type-mismatch issue reported by AddressSanitizer
This commit is contained in:
@@ -39,6 +39,8 @@ struct GameObjectDisplayInfoEntry;
|
||||
class TC_COMMON_API GameObjectModelOwnerBase
|
||||
{
|
||||
public:
|
||||
virtual ~GameObjectModelOwnerBase() = default;
|
||||
|
||||
virtual bool IsSpawned() const { return false; }
|
||||
virtual uint32 GetDisplayId() const { return 0; }
|
||||
virtual bool IsInPhase(std::set<uint32> const& /*phases*/) const { return false; }
|
||||
|
||||
@@ -2619,6 +2619,7 @@ class GameObjectModelOwnerImpl : public GameObjectModelOwnerBase
|
||||
{
|
||||
public:
|
||||
explicit GameObjectModelOwnerImpl(GameObject const* owner) : _owner(owner) { }
|
||||
virtual ~GameObjectModelOwnerImpl() = default;
|
||||
|
||||
virtual bool IsSpawned() const override { return _owner->isSpawned(); }
|
||||
virtual uint32 GetDisplayId() const override { return _owner->GetDisplayId(); }
|
||||
|
||||
Reference in New Issue
Block a user