mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
no payers anymore
This commit is contained in:
parent
308a0cf00e
commit
46f6e45a0c
2 changed files with 5 additions and 5 deletions
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue