diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-12-13 22:40:23 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-12-13 22:40:23 +0100 |
| commit | 8d8c26eda18e35f360d48b04d449ec6855cc730d (patch) | |
| tree | 617c7b96bdd682f0d51a57c7dbea10d6e5a44966 | |
| parent | f901acd66b195df4fd0479e1541192cd55d24841 (diff) | |
| -rw-r--r-- | src/server/game/Spells/SpellHistory.cpp | 6 | ||||
| -rw-r--r-- | src/server/game/Spells/SpellHistory.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/server/game/Spells/SpellHistory.cpp b/src/server/game/Spells/SpellHistory.cpp index bfa2d769b3c..6589cb8b2e1 100644 --- a/src/server/game/Spells/SpellHistory.cpp +++ b/src/server/game/Spells/SpellHistory.cpp @@ -1105,6 +1105,12 @@ void SpellHistory::SendClearCooldowns(std::vector<int32> const& cooldowns) const } } +SpellHistory::CooldownStorageType::iterator SpellHistory::EraseCooldown(CooldownStorageType::iterator itr) +{ + _categoryCooldowns.erase(itr->second.CategoryId); + return _spellCooldowns.erase(itr); +} + void SpellHistory::SendSetSpellCharges(uint32 chargeCategoryId, ChargeEntryCollection const& chargeCollection) const { if (Player* player = GetPlayerOwner()) diff --git a/src/server/game/Spells/SpellHistory.h b/src/server/game/Spells/SpellHistory.h index 08879ae3785..9747c482d74 100644 --- a/src/server/game/Spells/SpellHistory.h +++ b/src/server/game/Spells/SpellHistory.h @@ -214,11 +214,7 @@ private: void UpdateCooldownRecoveryRate(CooldownStorageType::iterator& itr, float modChange, bool apply); void ResetCooldown(CooldownStorageType::iterator& itr, bool update = false); void SendClearCooldowns(std::vector<int32> const& cooldowns) const; - CooldownStorageType::iterator EraseCooldown(CooldownStorageType::iterator itr) - { - _categoryCooldowns.erase(itr->second.CategoryId); - return _spellCooldowns.erase(itr); - } + CooldownStorageType::iterator EraseCooldown(CooldownStorageType::iterator itr); void SendSetSpellCharges(uint32 chargeCategoryId, ChargeEntryCollection const& chargeCollection) const; |
