summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-10-19 13:17:06 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-10-19 13:17:06 +0000
commit338d9861bc7800744f47e72de1b6a659540ed3b1 (patch)
treec1f6433a8011ffa605d55fd1902fc95edfe8ef1c /src/vehicle_base.h
parent8fff781ca06dfdd4e60509d525fcb5c840e0e431 (diff)
downloadopenttd-338d9861bc7800744f47e72de1b6a659540ed3b1.tar.xz
(svn r25883) -Fix: Limit recursion and branching in RefreshNextHopsStats more aggressively.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 4eecda6cc..ef5afa568 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -150,7 +150,7 @@ private:
Vehicle *next_shared; ///< pointer to the next vehicle that shares the order
Vehicle *previous_shared; ///< NOSAVE: pointer to the previous vehicle in the shared order chain
- void RefreshNextHopsStats(CapacitiesMap &capacities,
+ uint RefreshNextHopsStats(CapacitiesMap &capacities,
RefitList &refit_capacities, const Order *first, const Order *cur,
const Order *next, uint hops, bool was_refit, bool has_cargo);
public: