mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r25422) -Fix: properly initialize base capacity for paths
This commit is contained in:
parent
be3b25fd65
commit
d9985c3331
@ -177,7 +177,7 @@ uint Path::AddFlow(uint new_flow, LinkGraphJob &job, uint max_saturation)
|
||||
*/
|
||||
Path::Path(NodeID n, bool source) :
|
||||
distance(source ? 0 : UINT_MAX),
|
||||
capacity(0),
|
||||
capacity(source ? UINT_MAX : 0),
|
||||
free_capacity(source ? INT_MAX : INT_MIN),
|
||||
flow(0), node(n), origin(source ? n : INVALID_NODE),
|
||||
num_children(0), parent(NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user