Closed SomeFire closed 5 years ago
java.lang.StackOverflowError
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.MapTilePathModel.isTileNotAvailable(MapTilePathModel.java:88)
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.MapTilePathModel.isAreaAvailable(MapTilePathModel.java:408)
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.MapTilePathModel.getClosestAvailableTile(MapTilePathModel.java:180)
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.MapTilePathModel.getClosestAvailableTile(MapTilePathModel.java:398)
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.PathFinderImpl.findPath(PathFinderImpl.java:255)
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.PathFinderImpl.findPath(PathFinderImpl.java:260)
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.PathFinderImpl.findPath(PathFinderImpl.java:260)
at com.b3dgs.lionengine.game.feature.tile.map.pathfinding.PathFinderImpl.findPath(PathFinderImpl.java:260)
Expected Behavior
Endpoint of path should be targeted at closest position to the clicked point.
Actual Behavior
In some cases if path is blocked - SOE happens.
Steps to Reproduce the Problem
See screenshot:
Specifications