Fixed Thumper crash
parent
868dec4488
commit
3f57aab406
|
@ -371,7 +371,7 @@ bool CTaskTerraform::Terraform()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( !pObj->Implements(ObjectInterfaceType::Movable) == 0 ) continue;
|
if ( !pObj->Implements(ObjectInterfaceType::Movable) ) continue;
|
||||||
motion = dynamic_cast<CMovableObject*>(pObj)->GetMotion();
|
motion = dynamic_cast<CMovableObject*>(pObj)->GetMotion();
|
||||||
|
|
||||||
dist = Math::Distance(m_terraPos, pObj->GetPosition());
|
dist = Math::Distance(m_terraPos, pObj->GetPosition());
|
||||||
|
|
Loading…
Reference in New Issue