From 46f6e45a0cb1c5f0c76351e9ddbe59a818a53115 Mon Sep 17 00:00:00 2001 From: AriAvery <41122212+AriAvery@users.noreply.github.com> Date: Fri, 23 Nov 2018 11:04:19 +0100 Subject: [PATCH] no payers anymore --- src/servers/sapphire_zone/ServerMgr.cpp | 8 ++++---- src/servers/sapphire_zone/ServerMgr.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/servers/sapphire_zone/ServerMgr.cpp b/src/servers/sapphire_zone/ServerMgr.cpp index d521f999..245e3a46 100644 --- a/src/servers/sapphire_zone/ServerMgr.cpp +++ b/src/servers/sapphire_zone/ServerMgr.cpp @@ -367,9 +367,9 @@ bool Core::ServerMgr::isRunning() const std::string Core::ServerMgr::getPlayerNameFromDb( uint32_t playerId ) { - auto it = m_payerNameMapById.find( playerId ); + auto it = m_playerNameMapById.find( playerId ); - if( it != m_payerNameMapById.end() ) + if( it != m_playerNameMapById.end() ) return ( it->second ); auto pDb = g_fw.get< Db::DbWorkerPool< Db::ZoneDbConnection > >(); @@ -380,7 +380,7 @@ std::string Core::ServerMgr::getPlayerNameFromDb( uint32_t playerId ) std::string playerName = res->getString( 1 ); - m_payerNameMapById[ playerId ] = playerName; + m_playerNameMapById[ playerId ] = playerName; return playerName; } @@ -390,7 +390,7 @@ void Core::ServerMgr::updatePlayerName( uint32_t playerId, const std::string & p auto pDb = g_fw.get< Db::DbWorkerPool< Db::ZoneDbConnection > >(); pDb->execute( "UPDATE charainfo SET name = '" + playerNewName + "' WHERE name = " + std::to_string( playerId ) ); - m_payerNameMapById[ playerId ] = playerNewName; + m_playerNameMapById[ playerId ] = playerNewName; } void Core::ServerMgr::loadBNpcTemplates() diff --git a/src/servers/sapphire_zone/ServerMgr.h b/src/servers/sapphire_zone/ServerMgr.h index 7c2a91db..861b5b7a 100644 --- a/src/servers/sapphire_zone/ServerMgr.h +++ b/src/servers/sapphire_zone/ServerMgr.h @@ -60,7 +60,7 @@ private: std::map< uint32_t, SessionPtr > m_sessionMapById; std::map< std::string, SessionPtr > m_sessionMapByName; - std::map< uint32_t, std::string > m_payerNameMapById; + std::map< uint32_t, std::string > m_playerNameMapById; std::map< uint32_t, uint32_t > m_zones; std::map< std::string, Entity::BNpcTemplatePtr > m_bNpcTemplateMap;