From bba824a1c65beaa581c4b8f5eca7c9d2cb1400bb Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 29 Feb 2012 13:40:40 +0000 Subject: Making sure cClientHandle::m_Player was NULL after authentication completed git-svn-id: http://mc-server.googlecode.com/svn/trunk@343 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 7128b925c..f31daf79e 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -261,6 +261,7 @@ void cClientHandle::Kick(const AString & a_Reason) void cClientHandle::Authenticate(void) { + ASSERT( m_Player == NULL ); // Spawn player (only serversided, so data is loaded) m_Player = new cPlayer(this, GetUsername()); -- cgit v1.2.3