summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-07-06 17:01:31 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-07-06 17:01:31 +0000
commitb09c4043ecddcb62fa946f13a888984cc9275df7 (patch)
tree563796838990df4fd57d47e4240157900767385e /src/economy.cpp
parent290fbd2231a04b4ab56db86630161bb720bac62b (diff)
downloadopenttd-b09c4043ecddcb62fa946f13a888984cc9275df7.tar.xz
(svn r25565) -Codechange: Rewrite order prediction logic to introduce proper refit prediction
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index ca276570e..e936b5678 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1530,6 +1530,9 @@ static void LoadUnloadVehicle(Vehicle *front)
cur_company.Restore();
}
+ /* As we're loading here the following link can carry the full capacity of the vehicle. */
+ v->refit_cap = v->cargo_cap;
+
/* update stats */
int t;
switch (front->type) {