1
0
Fork 0

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.
This commit is contained in:
changyong guo 2018-08-17 23:46:06 +08:00 committed by peterbell10
parent e7b552603f
commit 89017dfbbc
1 changed files with 0 additions and 1 deletions

View File

@ -149,7 +149,6 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) :
SetBedPos(Vector3i(static_cast<int>(World->GetSpawnX()), static_cast<int>(World->GetSpawnY()), static_cast<int>(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()