From 31509aac683ca9ed3c1198eb09830e6db9543a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 24 Mar 2022 08:53:27 -0600 Subject: [PATCH] Properly check tlocs instead of locs in RandomTeleport crash --- src/RandomPlayerbotMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 52b4dbc6..d950a7b5 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -997,7 +997,7 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot, std::vector& }), 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;