From 3e460e28db70d043417ac36ef61d833c486345c9 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Wed, 6 Dec 2023 23:54:07 -0300 Subject: [PATCH] fix: compilation --- src/creatures/combat/spells.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/creatures/combat/spells.cpp b/src/creatures/combat/spells.cpp index 412d1c97932..3cf08480d67 100644 --- a/src/creatures/combat/spells.cpp +++ b/src/creatures/combat/spells.cpp @@ -610,6 +610,7 @@ void Spell::applyCooldownConditions(std::shared_ptr player) const { WheelSpellGrade_t spellGrade = player->wheel()->getSpellUpgrade(getName()); bool isUpgraded = getWheelOfDestinyUpgraded() && static_cast(spellGrade) > 0; // Safety check to prevent division by zero + auto rate_cooldown = g_configManager().getFloat(RATE_SPELL_COOLDOWN, __FUNCTION__); if (std::abs(rate_cooldown) < std::numeric_limits::epsilon()) { rate_cooldown = 0.1; // Safe minimum value }