mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update PvpValues.cpp (#1746)
Set uninitialized variable Remove std::move
This commit is contained in:
@@ -102,7 +102,7 @@ std::vector<CreatureData const*> BgMastersValue::Calculate()
|
||||
}
|
||||
}
|
||||
|
||||
return std::move(bmGuids);
|
||||
return bmGuids;
|
||||
}
|
||||
|
||||
CreatureData const* BgMasterValue::Calculate()
|
||||
@@ -120,7 +120,7 @@ CreatureData const* BgMasterValue::NearestBm(bool allowDead)
|
||||
|
||||
std::vector<CreatureData const*> bmPairs = AI_VALUE2(std::vector<CreatureData const*>, "bg masters", qualifier);
|
||||
|
||||
float rDist;
|
||||
float rDist = 0.0f;
|
||||
CreatureData const* rbmPair = nullptr;
|
||||
|
||||
for (auto& bmPair : bmPairs)
|
||||
|
||||
Reference in New Issue
Block a user