mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Properly check tlocs instead of locs in RandomTeleport crash
This commit is contained in:
@@ -997,7 +997,7 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot, std::vector<WorldLocation>&
|
|||||||
}), tlocs.end());
|
}), tlocs.end());
|
||||||
|
|
||||||
// Check locs again in case all possible locations were removed
|
// 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());
|
LOG_DEBUG("playerbots", "Cannot teleport bot {} - all locations removed by filter", bot->GetName().c_str());
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user