From 4519469547c0f8befe74e3e80a94efb0e076ba34 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 22 Sep 2020 21:21:47 +0100 Subject: Do not call into things we don't own in destructors - Remove improper accesses in cChunk destructor * Fixes #4894 --- src/ClientHandle.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ClientHandle.cpp') diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index ce4a56ae0..28cdb4aa7 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -129,7 +129,6 @@ cClientHandle::~cClientHandle() { RemoveFromAllChunks(); m_Player->GetWorld()->RemoveClientFromChunkSender(this); - m_Player->DestroyNoScheduling(true); } // Send the Offline PlayerList packet: cRoot::Get()->BroadcastPlayerListsRemovePlayer(*m_Player); -- cgit v1.2.3