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:
parent
7a26fbe471
commit
57a97e8036
@ -98,9 +98,9 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
|
|||||||
{
|
{
|
||||||
m_Inventory->Clear();
|
m_Inventory->Clear();
|
||||||
m_CreativeInventory->Clear();
|
m_CreativeInventory->Clear();
|
||||||
SetPosX( cRoot::Get()->GetDefaultWorld()->GetSpawnX() );
|
m_Pos->x = cRoot::Get()->GetDefaultWorld()->GetSpawnX();
|
||||||
SetPosY( cRoot::Get()->GetDefaultWorld()->GetSpawnY() );
|
m_Pos->y = cRoot::Get()->GetDefaultWorld()->GetSpawnY();
|
||||||
SetPosZ( cRoot::Get()->GetDefaultWorld()->GetSpawnZ() );
|
m_Pos->z = cRoot::Get()->GetDefaultWorld()->GetSpawnZ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user