diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-07-24 05:41:44 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-07-24 05:41:44 +0000 |
commit | b54666222ca5020438aa9151a51a295269b1b319 (patch) | |
tree | 76effbcef01e027f6de1b5f77b7c360884c88ac3 /src/connectionhandler.cpp | |
parent | 7c69090507eb2d314ca53d99265f538a10a0f1fb (diff) | |
download | manaserv-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.cpp | 4 |
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) |