From 92981dcb3c1f4ac0929a9a858eb702953e8870c8 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 7 Feb 2012 07:44:42 +0000 Subject: Slight cleanup git-svn-id: http://mc-server.googlecode.com/svn/trunk@238 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/packets/cPacket.h') diff --git a/source/packets/cPacket.h b/source/packets/cPacket.h index 702b3e369..817aa1a27 100644 --- a/source/packets/cPacket.h +++ b/source/packets/cPacket.h @@ -16,8 +16,8 @@ public: {} virtual ~cPacket() {} - virtual bool Parse( cSocket & a_Socket) { a_Socket=0; printf("ERROR: Undefined NEW Parse function %x\n", m_PacketID ); return false; } - virtual bool Send( cSocket & a_Socket) { a_Socket=0; printf("ERROR: Undefined NEW Send function %x\n", m_PacketID ); return false; } + virtual bool Parse( cSocket & a_Socket) {a_Socket.CloseSocket(); LOGERROR("Undefined NEW Parse function %x\n", m_PacketID ); return false; } + virtual bool Send( cSocket & a_Socket) {a_Socket.CloseSocket(); LOGERROR("Undefined NEW Send function %x\n", m_PacketID ); return false; } virtual cPacket* Clone() const = 0; unsigned char m_PacketID; -- cgit v1.2.3