diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-23 00:19:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-23 00:19:55 +0400 |
commit | dad877bc3b7badad5c6c554991101c6ae722aa96 (patch) | |
tree | 29a7a098c0b9ff5bf675c83aeeb3c913e848e5b4 /source | |
parent | a72c375a9b91cdac34bb48241350c69ca77750d6 (diff) |
fix for BGE crash replicating a navmesh.
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/Ketsji/KX_NavMeshObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_NavMeshObject.cpp b/source/gameengine/Ketsji/KX_NavMeshObject.cpp index 33656e9fd52..24400398f03 100644 --- a/source/gameengine/Ketsji/KX_NavMeshObject.cpp +++ b/source/gameengine/Ketsji/KX_NavMeshObject.cpp @@ -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(); |