summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-24 13:47:15 +0000
committerrubidium <rubidium@openttd.org>2008-06-24 13:47:15 +0000
commit5b973282de54ad5b1a53326d4cd5d5fc8c41a1ad (patch)
tree568ecc9fd6d24d279f8cc06c3574035e1138789f /src/vehicle_gui.cpp
parent47933d2ddb7f952652bdc9c349b36d60ab673e31 (diff)
downloadopenttd-5b973282de54ad5b1a53326d4cd5d5fc8c41a1ad.tar.xz
(svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index bce679cfa..398db3eb5 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -219,7 +219,7 @@ static RefitList *BuildRefitList(const Vehicle *v)
}
}
}
- } while (v->type == VEH_TRAIN && (u = u->Next()) != NULL && num_lines < max_lines);
+ } while ((v->type == VEH_TRAIN || v->type == VEH_ROAD) && (u = u->Next()) != NULL && num_lines < max_lines);
list->num_lines = num_lines;
list->items = refit;