mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-07 01:30:31 +00:00
fix(Core/Creature): prevent crash due to recursive call for help (#23008)
This commit is contained in:
@@ -1157,7 +1157,11 @@ namespace Acore
|
||||
return;
|
||||
|
||||
if (u->AI())
|
||||
{
|
||||
u->SetNoCallForHelp(true); // avoid recursive call for help causing stack overflow
|
||||
u->AI()->AttackStart(i_enemy);
|
||||
u->SetNoCallForHelp(false);
|
||||
}
|
||||
}
|
||||
private:
|
||||
Unit* const i_funit;
|
||||
|
||||
Reference in New Issue
Block a user