summaryrefslogtreecommitdiff
path: root/src/linkgraph/refresh.h
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2014-01-28 19:49:43 +0000
committerfonsinchen <fonsinchen@openttd.org>2014-01-28 19:49:43 +0000
commitb12bf124c74c4d1e1c2d2eb1c553e12b893dfd30 (patch)
tree1a542240ff0828503cf45f4ce388f5b753aff8e0 /src/linkgraph/refresh.h
parent84b8d376b602ec9abcee2589eee708169be331dc (diff)
downloadopenttd-b12bf124c74c4d1e1c2d2eb1c553e12b893dfd30.tar.xz
(svn r26283) -Fix [FS#5878]: Prevent infinite recursion also in RefreshLinks.
Diffstat (limited to 'src/linkgraph/refresh.h')
-rw-r--r--src/linkgraph/refresh.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linkgraph/refresh.h b/src/linkgraph/refresh.h
index 21c92c4bc..6f3f8f9b6 100644
--- a/src/linkgraph/refresh.h
+++ b/src/linkgraph/refresh.h
@@ -94,9 +94,9 @@ protected:
void HandleRefit(const Order *next);
void ResetRefit();
void RefreshStats(const Order *cur, const Order *next);
- const Order *PredictNextOrder(const Order *cur, const Order *next, uint8 flags);
+ const Order *PredictNextOrder(const Order *cur, const Order *next, uint8 flags, uint num_hops = 0);
- void RefreshLinks(const Order *cur, const Order *next, uint8 flags);
+ void RefreshLinks(const Order *cur, const Order *next, uint8 flags, uint num_hops = 0);
};
#endif // REFRESH_H