mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 22:33:06 +00:00
Adding the m_base check.
This was SVN commit r6522.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user