Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/plugins/common/recast/celhpf.cpp
- ===================================================================
- --- src/plugins/common/recast/celhpf.cpp (revisione 7481)
- +++ src/plugins/common/recast/celhpf.cpp (copia locale)
- @@ -62,7 +62,14 @@
- if(hlPath->HasNext())
- {
- src = hlPath->Next();
- - dst = hlPath->Next();
- + if(hlPath->HasNext())
- + {
- + dst = hlPath->Next();
- + }
- + else
- + {
- + break;
- + }
- }
- else
- {
- @@ -700,7 +707,7 @@
- hlGraph->RemoveNode(goalNodeIdx);
- hlGraph->RemoveNode(fromNodeIdx);
- - if (hlPath->GetNodeCount() == 0)
- + if (hlPath->GetNodeCount() <= 1)
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement