Skip to content

Commit 9a1a753

Browse files
committed
Core/Entities: streamline GetPctModifierValue return value to safeguard against evil
1 parent 1ebcf61 commit 9a1a753

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9145,7 +9145,7 @@ float Unit::GetPctModifierValue(UnitMods unitMod, UnitModifierPctType modifierTy
91459145
if (unitMod >= UNIT_MOD_END || modifierType >= MODIFIER_TYPE_PCT_END)
91469146
{
91479147
TC_LOG_ERROR("entities.unit", "attempt to access non-existing modifier value from UnitMods!");
9148-
return 0.0f;
9148+
return 1.0f;
91499149
}
91509150

91519151
return m_auraPctModifiersGroup[unitMod][modifierType];

0 commit comments

Comments
 (0)