From 57a97e8036aec10625be3543bbfe6b525e9ba5e3 Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 15 Feb 2012 22:11:56 +0000 Subject: New players no longer cause an assert git-svn-id: http://mc-server.googlecode.com/svn/trunk@267 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 1086e862a..e5d67c96e 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -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(); } } -- cgit v1.2.3