(svn r25883) -Fix: Limit recursion and branching in RefreshNextHopsStats more aggressively.

This commit is contained in:
fonsinchen
2013-10-19 13:17:06 +00:00
parent 4f233df551
commit 67e0f7416a
2 changed files with 20 additions and 12 deletions

View File

@@ -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: