From 5a4acbe36c21768a1ce836595b97cc484df9d1fc Mon Sep 17 00:00:00 2001 From: SaW Date: Mon, 20 Oct 2025 01:04:11 +0200 Subject: [PATCH] Update PvpValues.cpp (#1746) Set uninitialized variable Remove std::move --- src/strategy/values/PvpValues.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/values/PvpValues.cpp b/src/strategy/values/PvpValues.cpp index f295f650..e01b56ef 100644 --- a/src/strategy/values/PvpValues.cpp +++ b/src/strategy/values/PvpValues.cpp @@ -102,7 +102,7 @@ std::vector BgMastersValue::Calculate() } } - return std::move(bmGuids); + return bmGuids; } CreatureData const* BgMasterValue::Calculate() @@ -120,7 +120,7 @@ CreatureData const* BgMasterValue::NearestBm(bool allowDead) std::vector bmPairs = AI_VALUE2(std::vector, "bg masters", qualifier); - float rDist; + float rDist = 0.0f; CreatureData const* rbmPair = nullptr; for (auto& bmPair : bmPairs)