fix(Core/Creature): prevent crash due to recursive call for help (#23008)

This commit is contained in:
killerwife
2025-09-23 11:53:32 +02:00
committed by GitHub
parent 78dea88d5d
commit 77d972acbb
3 changed files with 10 additions and 1 deletions

View File

@@ -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;