mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
fix server [extrem hoch] cpu usage
This commit is contained in:
parent
ab66162291
commit
2e5a9d3567
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ Sapphire::Entity::BNpcTemplatePtr Sapphire::World::ServerMgr::getBNpcTemplate( c
|
||||||
|
|
||||||
Sapphire::Entity::BNpcTemplatePtr Sapphire::World::ServerMgr::getBNpcTemplate( uint32_t id )
|
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 )
|
if( entry.second->getId() == id )
|
||||||
return entry.second;
|
return entry.second;
|
||||||
|
|
Loading…
Add table
Reference in a new issue