mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-07 14:50:21 +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)
|
void PathFinding::molestPath(VectorPath &path)
|
||||||
{
|
{
|
||||||
int sz=path.getNumPathNodes();
|
int sz=path.getNumPathNodes();
|
||||||
|
if(!sz)
|
||||||
|
return;
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
// make normals
|
// make normals
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue