Closed tomassedovic closed 3 years ago
Looks like an issue in libtcod itself where it can't reverse an empty list (the example that breaks is finding a path from the origin to itself). Can be protected against by checking for an empty list before calling the reverse function. A* is unaffected by this issue as far as I can see.
This happens both with the current tcod-rs release (0.15.0) and with: https://github.com/tomassedovic/tcod-rs/pull/309
I suspect that means the error is probably in our bindings rather than libtcod itself, but maybe it is just a long-standing issue in the original codebase.