mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 04:37:01 +00:00
[12021] Fix some warnings
Thx to stfx for porting Signed-off-by: stfx <stfx@hotmail.de> Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
e533ff54d5
commit
f777665d48
18 changed files with 35 additions and 57 deletions
|
|
@ -110,7 +110,7 @@ WorldSession::~WorldSession()
|
|||
}
|
||||
|
||||
///- empty incoming packet queue
|
||||
WorldPacket* packet;
|
||||
WorldPacket* packet = NULL;
|
||||
while(_recvQueue.next(packet))
|
||||
delete packet;
|
||||
}
|
||||
|
|
@ -202,7 +202,7 @@ bool WorldSession::Update(PacketFilter& updater)
|
|||
{
|
||||
///- Retrieve packets from the receive queue and call the appropriate handlers
|
||||
/// not process packets if socket already closed
|
||||
WorldPacket* packet;
|
||||
WorldPacket* packet = NULL;
|
||||
while (m_Socket && !m_Socket->IsClosed() && _recvQueue.next(packet, updater))
|
||||
{
|
||||
/*#if 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue