From f5842062d3f9594d8f22f8938915194d20ebdf5f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 13 Apr 2013 21:28:55 +0000 Subject: Proper entity removal functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1386 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Player.cpp') diff --git a/source/Player.cpp b/source/Player.cpp index cfbf5cdff..2cb96ca9c 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -853,7 +853,7 @@ bool cPlayer::MoveToWorld( const char* a_WorldName ) /* Remove all links to the old world */ m_World->RemovePlayer( this ); m_ClientHandle->RemoveFromAllChunks(); - m_World->RemoveEntityFromChunk(this, GetChunkX(), GetChunkZ()); + m_World->RemoveEntity(this); /* Add player to all the necessary parts of the new world */ SetWorld( World ); -- cgit v1.2.3