summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-09-04 22:22:38 +0000
committerglx <glx@openttd.org>2006-09-04 22:22:38 +0000
commit9aa84ab2d2c452b9b1b61c3f9505af87ccf5412f (patch)
tree18cd5f9dd6d0893369e648dbef8494bb0d122fbc
parent3d6f6813f26786ab4aa551d94a5bf6dc3dedfe44 (diff)
downloadopenttd-9aa84ab2d2c452b9b1b61c3f9505af87ccf5412f.tar.xz
(svn r6386) -Fix(r6376): removed a warning
-rw-r--r--vehicle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index 2bd474fd9..1753181cd 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -729,7 +729,7 @@ CargoID FindFirstRefittableCargo(EngineID engine_type)
*/
int32 GetRefitCost(EngineID engine_type)
{
- int32 base_cost;
+ int32 base_cost = 0;
switch (GetEngine(engine_type)->type) {
case VEH_Ship: base_cost = _price.ship_base; break;