mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Properly check tlocs instead of locs in RandomTeleport crash
This commit is contained in:
parent
cb63f59823
commit
31509aac68
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user