diff options
Diffstat (limited to 'source/cPlayer.cpp')
-rw-r--r-- | source/cPlayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 2087f7927..5a005005d 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -147,6 +147,8 @@ void cPlayer::SpawnOn( cClientHandle* a_Target ) void cPlayer::Tick(float a_Dt)
{
cChunk* InChunk = GetWorld()->GetChunk( m_ChunkX, m_ChunkY, m_ChunkZ );
+ if( !InChunk ) return;
+
if(m_bDirtyOrientation && !m_bDirtyPosition)
{
cPacket_EntityLook EntityLook( this );
|