swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

If "initSlicedFindPath" returns DT_QUERY_READY, calling "finalizeSlicedFindPath" crashes. #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DT_QUERY_READY is returned from "initSlicedFindPath" when the start and end 
polys are the same. However, if you then call "finalizeSlicedFindPath" the code 
crashes. I think this is because it has skipped initialising the A* open/closed 
lists.

Original issue reported on code.google.com by armstron...@gmail.com on 27 Aug 2010 at 1:45

GoogleCodeExporter commented 9 years ago
Fixed in R220.

The power of assert did not seem to catch this case :) I added check for this 
special case in finalizeSlicedFindPath().

Original comment by memono...@gmail.com on 17 Sep 2010 at 7:38