From 083d44d4fe63ab997469cb0578258852dbf8220a Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Mon, 19 Dec 2022 16:51:05 -0500 Subject: [PATCH] [Bug Fix] Resolve Warning due to Virtual Mob Method GetInv() (#2650) --- zone/mob.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/mob.h b/zone/mob.h index ab2523850..78c1470fe 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -1594,7 +1594,7 @@ protected: #endif int GetBaseSkillDamage(EQ::skills::SkillType skill, Mob *target = nullptr); int64 GetFocusEffect(focusType type, uint16 spell_id, Mob *caster = nullptr, bool from_buff_tic = false); - virtual const EQ::InventoryProfile& GetInv() { return EQ::InventoryProfile(); } + virtual EQ::InventoryProfile& GetInv() { return m_inv; } void CalculateNewFearpoint(); float FindGroundZ(float new_x, float new_y, float z_offset=0.0); float FindDestGroundZ(glm::vec3 dest, float z_offset=0.0); @@ -1863,7 +1863,7 @@ protected: private: Mob* target; - + EQ::InventoryProfile m_inv; #ifdef BOTS std::shared_ptr m_target_of_heal_rotation;