From cc2f2e46c89854df776e1d56b5e253fef39b43aa Mon Sep 17 00:00:00 2001 From: freenity Date: Tue, 25 Nov 2008 00:03:24 +0000 Subject: [PATCH] Adding the m_base check. This was SVN commit r6522. --- source/simulation/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/simulation/Entity.cpp b/source/simulation/Entity.cpp index 47a72ac5d7..ce1ebe1203 100644 --- a/source/simulation/Entity.cpp +++ b/source/simulation/Entity.cpp @@ -1073,7 +1073,7 @@ float CEntity::GetAnchorLevel( float x, float z ) { CTerrain *pTerrain = g_Game->GetWorld()->GetTerrain(); float groundLevel = pTerrain->GetExactGroundLevel( x, z ); - if( m_base->m_anchorType==L"Ground" ) + if( m_base && m_base->m_anchorType==L"Ground" ) { return groundLevel; }