mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Reduce string overhead and totem check overhead
This commit is contained in:
@@ -1993,7 +1993,7 @@ bool PlayerbotAI::HasAura(std::string const name, Unit* unit, bool maxStack, boo
|
||||
{
|
||||
SpellInfo const* spellInfo = aurEff->GetSpellInfo();
|
||||
|
||||
std::string const auraName = spellInfo->SpellName[0];
|
||||
std::string_view const auraName = spellInfo->SpellName[0];
|
||||
if (auraName.empty() || auraName.length() != wnamepart.length() || !Utf8FitTo(auraName, wnamepart))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user