changeset 4839:91c33bc3c7a1 draft

(svn r6765) - Fix: Don't add up running cost of articulated engine parts.
author peter1138 <peter1138@openttd.org>
date Fri, 13 Oct 2006 15:15:22 +0000
parents 42913f93d44f
children b96b17c0f941
files train_cmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -3560,7 +3560,7 @@
 		const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
 		if (rvi->running_cost_base > 0)
 			cost += rvi->running_cost_base * _price.running_rail[rvi->running_cost_class];
-	} while ((v = v->next) != NULL);
+	} while ((v = GetNextVehicle(v)) != NULL);
 
 	return cost;
 }