Fixed a PNS assert.

This commit is contained in:
Maciej Suminski 2015-07-10 23:42:13 +02:00
parent a530ffad50
commit c9370ae5e6
1 changed files with 3 additions and 0 deletions

View File

@ -405,7 +405,10 @@ bool PNS_LINE_PLACER::rhWalkOnly( const VECTOR2I& aP, PNS_LINE& aNewHead )
PNS_OPTIMIZER::Optimize( &walkFull, effort, m_currentNode ); PNS_OPTIMIZER::Optimize( &walkFull, effort, m_currentNode );
if( m_currentNode->CheckColliding( &walkFull ) ) if( m_currentNode->CheckColliding( &walkFull ) )
{
aNewHead = m_head;
return false; return false;
}
m_head = walkFull; m_head = walkFull;
aNewHead = walkFull; aNewHead = walkFull;