Skip to content

Commit

Permalink
Fix GetCreatureCooldown() to use a reference for the out parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-at-wow committed Oct 22, 2023
1 parent fd9e5b7 commit 9800d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Globals/ObjectMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ class ObjectMgr
return { itrSpell->second.first, itrSpell->second.second };
}

bool GetCreatureCooldown(uint32 entry, uint32 spellId, uint32 cooldown) const
bool GetCreatureCooldown(uint32 entry, uint32 spellId, uint32& cooldown) const
{
auto itrEntry = m_creatureCooldownMap.find(entry);
if (itrEntry == m_creatureCooldownMap.end())
Expand Down

0 comments on commit 9800d9b

Please sign in to comment.