mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-25 22:25:46 +00:00
Fix pathfinding crash
This commit is contained in:
parent
664b2bd5f2
commit
84ffb703e1
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ void PathFinding::forceMinimumPath(VectorPath &path, const Vector &start, const
|
|||
void PathFinding::molestPath(VectorPath &path)
|
||||
{
|
||||
int sz=path.getNumPathNodes();
|
||||
if(!sz)
|
||||
return;
|
||||
|
||||
int i = 0;
|
||||
// make normals
|
||||
|
|
Loading…
Reference in a new issue