mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 10:00:02 +01:00
Fix crash in Refresh PlayerbotAI method
This commit is contained in:
parent
bb737ed928
commit
246b5b021d
@ -1350,6 +1350,9 @@ uint32 RandomPlayerbotMgr::GetZoneLevel(uint16 mapId, float teleX, float teleY,
|
||||
void RandomPlayerbotMgr::Refresh(Player* bot)
|
||||
{
|
||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
||||
if (!botAI)
|
||||
return;
|
||||
|
||||
if (bot->isDead())
|
||||
{
|
||||
bot->ResurrectPlayer(1.0f);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user