summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vehicle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index 76d78168b..26ac7d8a0 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;