Core/Misc: Fixed new-delete-type-mismatch issue reported by AddressSanitizer

This commit is contained in:
joschiwald
2018-01-28 23:34:14 +01:00
parent c4bf996c7d
commit dc43a08d36
2 changed files with 3 additions and 0 deletions
@@ -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(); }