Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Core/Creature: set or return in the definition of the function.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzo1247 committed Nov 29, 2023
1 parent 440c44f commit 2c99ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/server/game/Entities/Creature/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1247,16 +1247,6 @@ Group* Creature::GetLootRecipientGroup() const
return sGroupMgr->GetGroupByGUID(m_lootRecipientGroup);
}

uint32 Creature::GetGossipMenuId() const
{
return _gossipMenuId;
}

void Creature::SetGossipMenuId(uint32 gossipMenuID)
{
_gossipMenuId = gossipMenuID;
}

void Creature::SetLootRecipient(Unit* unit, bool withGroup)
{
// set the player whose group should receive the right
Expand Down
4 changes: 2 additions & 2 deletions src/server/game/Entities/Creature/Creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ class TC_GAME_API Creature : public Unit, public GridObject<Creature>, public Ma
bool HasStaticFlag(CreatureStaticFlags4 flag) const { return _staticFlags.HasFlag(flag); }
bool HasStaticFlag(CreatureStaticFlags5 flag) const { return _staticFlags.HasFlag(flag); }

uint32 GetGossipMenuId() const;
void SetGossipMenuId(uint32 gossipMenuId);
uint32 GetGossipMenuId() const { return _gossipMenuId; }
void SetGossipMenuId(uint32 gossipMenuId) { _gossipMenuId = gossipMenuId; }

bool HasSwimmingFlagOutOfCombat() const
{
Expand Down

0 comments on commit 2c99ab7

Please sign in to comment.