diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp index 42ecd935df..5503422334 100644 --- a/src/server/game/Entities/Object/Object.cpp +++ b/src/server/game/Entities/Object/Object.cpp @@ -1056,7 +1056,7 @@ void WorldObject::CleanupsBeforeDelete(bool /*finalCleanup*/) transport->RemovePassenger(this); } -void WorldObject::Update (uint32 time_diff) +void WorldObject::Update([[maybe_unused]] uint32 time_diff) { #ifdef ELUNA if(elunaEvents) // can be null on maps without eluna diff --git a/src/server/game/Entities/Object/Object.h b/src/server/game/Entities/Object/Object.h index fb9db9edb0..372941a9ac 100644 --- a/src/server/game/Entities/Object/Object.h +++ b/src/server/game/Entities/Object/Object.h @@ -290,7 +290,7 @@ class TC_GAME_API WorldObject : public Object, public WorldLocation public: virtual ~WorldObject(); - virtual void Update(uint32 /*time_diff*/); + virtual void Update([[maybe_unused]] uint32 time_diff); void _Create(ObjectGuid::LowType guidlow, HighGuid guidhigh, uint32 phaseMask); void AddToWorld() override;