1
0

New players no longer cause an assert

git-svn-id: http://mc-server.googlecode.com/svn/trunk@267 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth 2012-02-15 22:11:56 +00:00
parent 7a26fbe471
commit 57a97e8036

View File

@ -98,9 +98,9 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
{
m_Inventory->Clear();
m_CreativeInventory->Clear();
SetPosX( cRoot::Get()->GetDefaultWorld()->GetSpawnX() );
SetPosY( cRoot::Get()->GetDefaultWorld()->GetSpawnY() );
SetPosZ( cRoot::Get()->GetDefaultWorld()->GetSpawnZ() );
m_Pos->x = cRoot::Get()->GetDefaultWorld()->GetSpawnX();
m_Pos->y = cRoot::Get()->GetDefaultWorld()->GetSpawnY();
m_Pos->z = cRoot::Get()->GetDefaultWorld()->GetSpawnZ();
}
}