mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 11:53:36 +00:00
Fix a m_JumpPointCache assertion failure in debug mode, refs fa726867f1.
Patch By: Stan Comments By: wraitii Differential Revision: https://code.wildfiregames.com/D1942 This was SVN commit r22336.
This commit is contained in:
@@ -720,8 +720,9 @@ void LongPathfinder::ComputeJPSPath(const HierarchicalPathfinder& hierPath, enti
|
||||
PathfinderState state = { 0 };
|
||||
|
||||
std::map<pass_class_t, shared_ptr<JumpPointCache> >::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;
|
||||
|
||||
Reference in New Issue
Block a user