From 9800d9be2b247bf83d7979800e6f28e34e80e9e4 Mon Sep 17 00:00:00 2001 From: evil-at-wow Date: Sun, 22 Oct 2023 18:16:59 +0200 Subject: [PATCH] Fix GetCreatureCooldown() to use a reference for the out parameter. --- src/game/Globals/ObjectMgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Globals/ObjectMgr.h b/src/game/Globals/ObjectMgr.h index e430638378..d8a4f2fa6b 100644 --- a/src/game/Globals/ObjectMgr.h +++ b/src/game/Globals/ObjectMgr.h @@ -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())