From 89017dfbbcb0750c07fe067f2b61cde94e4dc875 Mon Sep 17 00:00:00 2001 From: changyong guo Date: Fri, 17 Aug 2018 23:46:06 +0800 Subject: [PATCH] solve new player login crash issue (#4285) currently if new player login, server will crash during send player ability to client. this pull request solve this issue. --- src/Entities/Player.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index a24b9d94c..8d94ab7c5 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -149,7 +149,6 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) : SetBedPos(Vector3i(static_cast(World->GetSpawnX()), static_cast(World->GetSpawnY()), static_cast(World->GetSpawnZ())), World); SetWorld(World); // Use default world - SetCapabilities(); LOGD("Player \"%s\" is connecting for the first time, spawning at default world spawn {%.2f, %.2f, %.2f}", a_PlayerName.c_str(), GetPosX(), GetPosY(), GetPosZ()