Skip to content

Commit

Permalink
Fix unused variable warning with Eluna disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Mar 1, 2024
1 parent 90069a2 commit 5749a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Object/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Entities/Object/Object.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5749a69

Please sign in to comment.