From b54666222ca5020438aa9151a51a295269b1b319 Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sun, 24 Jul 2005 05:41:44 +0000 Subject: Added character selection. --- src/connectionhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connectionhandler.cpp') diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp index ad42adc..6a46b94 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) -- cgit