fix for BGE crash replicating a navmesh.

This commit is contained in:
Campbell Barton
2013-03-22 20:19:55 +00:00
parent a72c375a9b
commit dad877bc3b

View File

@@ -96,7 +96,7 @@ CValue* KX_NavMeshObject::GetReplica()
void KX_NavMeshObject::ProcessReplica()
{
KX_GameObject::ProcessReplica();
m_navMesh = NULL; /* without this, building frees the navmesh we copied from */
BuildNavMesh();
KX_Scene* scene = KX_GetActiveScene();
KX_ObstacleSimulation* obssimulation = scene->GetObstacleSimulation();