1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 17:57:47 +00:00

Merge pull request #483 from itsMaru/develop

fix high cpu usage
This commit is contained in:
Mordred 2019-01-19 20:59:02 +01:00 committed by GitHub
commit f08442d4ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -473,7 +473,7 @@ Sapphire::Entity::BNpcTemplatePtr Sapphire::World::ServerMgr::getBNpcTemplate( c
Sapphire::Entity::BNpcTemplatePtr Sapphire::World::ServerMgr::getBNpcTemplate( uint32_t id )
{
for( auto entry : m_bNpcTemplateMap )
for( const auto& entry : m_bNpcTemplateMap )
{
if( entry.second->getId() == id )
return entry.second;