mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
Fix D1491 which introduced an ENSURE that should not have been there.
Reported by wowgetoffyourcellphone. This was SVN commit r22225.
This commit is contained in:
parent
fbfefa6063
commit
98f4ed6cb8
1 changed files with 1 additions and 5 deletions
|
|
@ -718,11 +718,7 @@ void LongPathfinder::ComputeJPSPath(entity_pos_t x0, entity_pos_t z0, const Path
|
|||
PROFILE2_IFSPIKE("ComputePathJPS", 0.0002);
|
||||
PathfinderState state = { 0 };
|
||||
|
||||
auto it = m_JumpPointCache.find(passClass);
|
||||
ENSURE(it != m_JumpPointCache.end());
|
||||
state.jpc = it->second.get();
|
||||
|
||||
if (m_UseJPSCache && !state.jpc)
|
||||
if (m_UseJPSCache && m_JumpPointCache.find(passClass) == m_JumpPointCache.end())
|
||||
{
|
||||
state.jpc = new JumpPointCache;
|
||||
state.jpc->reset(m_Grid, passClass);
|
||||
|
|
|
|||
Loading…
Reference in a new issue