From 5749a6965d228abc5538dc9788b0cb04c1fb89c6 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Fri, 1 Mar 2024 01:12:48 +0100 Subject: [PATCH] Fix unused variable warning with Eluna disabled --- src/server/game/Entities/Object/Object.cpp | 2 +- src/server/game/Entities/Object/Object.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;