diff options
author | Spp <none@none> | 2010-04-29 23:12:16 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-29 23:12:16 +0200 |
commit | cb0cb962831a2b0c62b0a67b750569ca3049327e (patch) | |
tree | f5638fb8695101002f77106da4264bbeaab46938 /src/game/WorldSession.cpp | |
parent | 35af94d4b57d234bc4d6e3c8ab67acb201500bae (diff) |
Warning Fixes
Code Style cleanup
Fix linux compile
--HG--
branch : trunk
Diffstat (limited to 'src/game/WorldSession.cpp')
-rw-r--r-- | src/game/WorldSession.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index 30688b7e915..3724d58b63d 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -180,7 +180,7 @@ bool WorldSession::Update(uint32 /*diff*/) LookupOpcodeName(packet->GetOpcode()), packet->GetOpcode()); #endif*/ - + if (packet->GetOpcode() >= NUM_MSG_TYPES) { sLog.outError("SESSION: received non-existed opcode %s (0x%.4X)", @@ -287,10 +287,10 @@ bool WorldSession::Update(uint32 /*diff*/) if (!m_Socket || (ShouldLogOut(currTime) && !m_playerLoading)) LogoutPlayer(true); - ///- If necessary, kick the player from the character select screen + ///- If necessary, kick the player from the character select screen if (IsConnectionIdle()) return false; - + if (!m_Socket) return false; //Will remove this session from the world session map |