summaryrefslogtreecommitdiff
path: root/src
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
commitc81e4e3d7e493d12828aae7f6020bdfb63e78626 (patch)
tree568ecc9fd6d24d279f8cc06c3574035e1138789f /src
parent65a4dc890272258cae30db52dcafa115b2979c13 (diff)
downloadopenttd-c81e4e3d7e493d12828aae7f6020bdfb63e78626.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')
-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;