Properly check tlocs instead of locs in RandomTeleport crash

This commit is contained in:
郑佩茹
2022-03-24 08:53:27 -06:00
parent cb63f59823
commit 31509aac68

View File

@@ -997,7 +997,7 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot, std::vector<WorldLocation>&
}), tlocs.end());
// Check locs again in case all possible locations were removed
if (locs.empty())
if (tlocs.empty())
{
LOG_DEBUG("playerbots", "Cannot teleport bot {} - all locations removed by filter", bot->GetName().c_str());
return;