Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Index: src/plugins/common/recast/celhpf.cpp
  2. ===================================================================
  3. --- src/plugins/common/recast/celhpf.cpp (revisione 7481)
  4. +++ src/plugins/common/recast/celhpf.cpp (copia locale)
  5. @@ -62,7 +62,14 @@
  6. if(hlPath->HasNext())
  7. {
  8. src = hlPath->Next();
  9. - dst = hlPath->Next();
  10. + if(hlPath->HasNext())
  11. + {
  12. + dst = hlPath->Next();
  13. + }
  14. + else
  15. + {
  16. + break;
  17. + }
  18. }
  19. else
  20. {
  21. @@ -700,7 +707,7 @@
  22. hlGraph->RemoveNode(goalNodeIdx);
  23. hlGraph->RemoveNode(fromNodeIdx);
  24.  
  25. - if (hlPath->GetNodeCount() == 0)
  26. + if (hlPath->GetNodeCount() <= 1)
  27. {
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement