summaryrefslogtreecommitdiff
path: root/src/connectionhandler.cpp
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-07-24 05:41:44 +0000
committerAaron Marks <nymacro@gmail.com>2005-07-24 05:41:44 +0000
commitb54666222ca5020438aa9151a51a295269b1b319 (patch)
tree76effbcef01e027f6de1b5f77b7c360884c88ac3 /src/connectionhandler.cpp
parent7c69090507eb2d314ca53d99265f538a10a0f1fb (diff)
downloadmanaserv-b54666222ca5020438aa9151a51a295269b1b319.tar.gz
manaserv-b54666222ca5020438aa9151a51a295269b1b319.tar.bz2
manaserv-b54666222ca5020438aa9151a51a295269b1b319.tar.xz
manaserv-b54666222ca5020438aa9151a51a295269b1b319.zip
Added character selection.
Diffstat (limited to 'src/connectionhandler.cpp')
-rw-r--r--src/connectionhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp
index ad42adcf..6a46b94e 100644
--- a/src/connectionhandler.cpp
+++ b/src/connectionhandler.cpp
@@ -188,8 +188,8 @@ ConnectionHandler::startListen(ListenThreadData *ltd)
std::string ipaddr = ip4ToString(
SDLNet_TCP_GetPeerAddress(s)->host);
- // Make sure that the packet is big enough
- if (result >= 4)
+ // Make sure that the packet is big enough (> short)
+ if (result >= 2)
{
Packet *packet = new Packet(buffer, result);
MessageIn msg(packet); // (MessageIn frees packet)