mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-31 22:05:10 +02:00
Correctly initialize graph cost in turns instead of default 255 turns
This commit is contained in:
parent
873d916a41
commit
f6f99d2384
@ -367,6 +367,7 @@ void GraphPaths::quickAddChainInfoWithBlocker(std::vector<AIPath> & paths, int3
|
||||
// final node
|
||||
n.coord = tile;
|
||||
n.cost = targetNode.cost;
|
||||
n.turns = static_cast<ui8>(targetNode.cost);
|
||||
n.danger = danger;
|
||||
n.parentIndex = path.nodes.size();
|
||||
path.nodes.push_back(n);
|
||||
|
Loading…
x
Reference in New Issue
Block a user