From 021724d235a1031ef434d3dfd2410bb14e7c2e6a Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Mon, 6 Nov 2023 21:11:05 +0200 Subject: [PATCH] Disable this warning. --- src/game/StatSystem.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index 113dbcbcc..8478714d6 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -396,6 +396,9 @@ void Player::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, fl if (lvl > 60) lvl = 60; +#pragma warning( push ) +#pragma warning( disable : 4065) + switch (GetShapeshiftForm()) { // World of Warcraft Client Patch 1.7.0 (2005-09-13) @@ -412,6 +415,8 @@ void Player::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, fl weapon_maxdamage = lvl * 1.25f * att_speed; break; } + +#pragma warning( pop ) total_value = 0.0f; // remove benefit from weapon enchants }