Small fixes.

This commit is contained in:
lotodore
2009-09-27 21:46:44 +00:00
parent 5095c03926
commit d28fe8eee7
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ SessionManager::GetSessionByPlayerName(const string playerName) const
}
SessionWrapper
SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId, bool preInitSessions) const
SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId, bool initSessions) const
{
SessionWrapper tmpSession;
boost::recursive_mutex::scoped_lock lock(m_sessionMapMutex);
@@ -132,7 +132,7 @@ SessionManager::GetSessionByUniquePlayerId(unsigned uniqueId, bool preInitSessio
while (session_i != session_end)
{
// Check all players which are fully connected.
if (preInitSessions || session_i->second.sessionData->GetState() != SessionData::Init)
if (initSessions || session_i->second.sessionData->GetState() != SessionData::Init)
{
boost::shared_ptr<PlayerData> tmpPlayer(session_i->second.playerData);
if (!tmpPlayer.get())