1
0
forked from 0ad/0ad

Adding the m_base check.

This was SVN commit r6522.
This commit is contained in:
freenity 2008-11-25 00:03:24 +00:00
parent 9cdaf33b28
commit cc2f2e46c8

View File

@ -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;
}