Closed namelessvoid closed 10 years ago
Bug reproduction not quite correct. The bug appears sometimes when a path to a neighbouring square which is occupied by a unit (friend or foe) is calculated. AStar::getPath() returns a valid Path which only contains the start square instead of a null-pointer. The BoardWidget::drawPath() tries now to access the second step via path->getSetp(1) which results in a segfault.
Reproduce bug:
Sometimes the game crashes with an out_of_range exception (pretty sure thrown in BoardWidget::drawPath()) after attacking an enemy unit.
Reproduce bug: