Improve containsstrategy performance

This commit is contained in:
Yunfan Li
2024-08-05 17:04:21 +08:00
parent 8d77666624
commit 085b2e7f19
7 changed files with 17 additions and 11 deletions

View File

@@ -1379,7 +1379,7 @@ bool PlayerbotAI::ContainsStrategy(StrategyType type)
{
for (uint8 i = 0; i < BOT_STATE_MAX; i++)
{
if (engines[i]->ContainsStrategy(type))
if (engines[i]->HasStrategyType(type))
return true;
}