Index: ps/trunk/source/simulation2/helpers/LongPathfinder.cpp =================================================================== --- ps/trunk/source/simulation2/helpers/LongPathfinder.cpp +++ ps/trunk/source/simulation2/helpers/LongPathfinder.cpp @@ -720,8 +720,9 @@ PathfinderState state = { 0 }; std::map >::const_iterator it = m_JumpPointCache.find(passClass); - state.jpc = it->second.get(); - + if (it != m_JumpPointCache.end()) + state.jpc = it->second.get(); + if (m_UseJPSCache && !state.jpc) { state.jpc = new JumpPointCache;