Merge pull request #564 from noisiver/fix-warning

Silence totalDps being uninitialized
This commit is contained in:
Yunfan Li
2024-10-03 10:32:02 +08:00
committed by GitHub

View File

@@ -25,7 +25,7 @@ float EstimatedLifetimeValue::Calculate()
float EstimatedGroupDpsValue::Calculate() float EstimatedGroupDpsValue::Calculate()
{ {
float totalDps; float totalDps = 0;
std::vector<Player*> groupPlayer = {bot}; std::vector<Player*> groupPlayer = {bot};
if (Group* group = bot->GetGroup()) if (Group* group = bot->GetGroup())