Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiliaBlow committed Feb 2, 2025
1 parent 8bf97e7 commit f22b771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/LuaEngine/methods/TrinityCore/PlayerMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -2904,9 +2904,9 @@ namespace LuaPlayer
bool update = E->CHECKVAL<bool>(3, true);
(void)update; // ensure that the variable is referenced in order to pass compiler checks

player->GetSpellHistory()->ResetCooldowns([category](SpellHistory::CooldownStorageType::iterator itr) -> bool
player->GetSpellHistory()->ResetCooldowns([category](SpellHistory::CooldownEntry const& cooldownEntry) -> bool
{
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(itr->first, DIFFICULTY_NONE);
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(cooldownEntry.SpellId, DIFFICULTY_NONE);
return spellInfo && spellInfo->GetCategory() == category;
}, update);

Expand Down

0 comments on commit f22b771

Please sign in to comment.