Skip to content

Commit

Permalink
Boot: Fixed potential issues when enhancing telecache
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Feb 1, 2025
1 parent f45a754 commit f939d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playerbot/RandomPlayerbotMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2432,7 +2432,8 @@ std::vector<std::pair<uint32, uint32>> RandomPlayerbotMgr::RpgLocationsNear(Worl
std::vector<std::pair<uint32, uint32>> results;
float minDist = FLT_MAX;
WorldPosition areaPos(pos);
std::string_view hasZone = "-", wantZone = areaPos.getAreaName(true, true);
std::string areaZone = areaPos.getAreaName(true, true);
std::string_view hasZone = "-", wantZone = areaZone;
for (uint32 level = 1; level < sPlayerbotAIConfig.randomBotMaxLevel + 1; level++)
{
for (uint32 r = 1; r < MAX_RACES; r++)
Expand Down

0 comments on commit f939d06

Please sign in to comment.