mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-18 03:05:43 +00:00
Reduce string overhead and totem check overhead
This commit is contained in:
@@ -265,7 +265,7 @@ class NamedObjectFactoryList
|
||||
factories.push_front(context);
|
||||
}
|
||||
|
||||
T* GetContextObject(std::string const name, PlayerbotAI* botAI)
|
||||
T* GetContextObject(std::string const &name, PlayerbotAI* botAI)
|
||||
{
|
||||
for (typename std::list<NamedObjectFactory<T>*>::iterator i = factories.begin(); i != factories.end(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user