one crash fix tm
This commit is contained in:
parent
766eefec29
commit
afe840e2c3
@ -224,7 +224,7 @@ struct MAP : public micropather::Graph
|
||||
corners.at(3) = Vector{ CornerOf->m_nwCorner.x, CornerOf->m_seCorner.y,
|
||||
CornerOf->m_seCorner.z }; // SW
|
||||
|
||||
Vector bestVec;
|
||||
Vector bestVec{};
|
||||
float bestDist = FLT_MAX;
|
||||
|
||||
for (size_t i = 0; i < corners.size(); i++)
|
||||
@ -237,7 +237,7 @@ struct MAP : public micropather::Graph
|
||||
}
|
||||
}
|
||||
|
||||
Vector bestVec2;
|
||||
Vector bestVec2{};
|
||||
float bestDist2 = FLT_MAX;
|
||||
|
||||
for (size_t i = 0; i < corners.size(); i++)
|
||||
|
@ -303,6 +303,7 @@ bool NavToSniperSpot(int priority)
|
||||
? preferred_sniper_spots
|
||||
: sniper_spots;
|
||||
bool toret = false;
|
||||
|
||||
if (use_preferred)
|
||||
{
|
||||
int best_spot = -1;
|
||||
|
Reference in New Issue
Block a user