Adding the m_base check.
This was SVN commit r6522.
This commit is contained in:
parent
9cdaf33b28
commit
cc2f2e46c8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user