Import: Filter vehicles in company vehicles lists by cargo patch

https://www.tt-forums.net/viewtopic.php?p=1193133#p1193133
This commit is contained in:
patch-import
2017-10-16 19:36:24 +01:00
committed by Jonathan G Rennison
parent 86a9438070
commit b1613a24f0
3 changed files with 104 additions and 2 deletions

View File

@@ -16,8 +16,9 @@
#include "vehiclelist.h"
#include "window_gui.h"
#include "widgets/dropdown_type.h"
#include "cargo_type.h"
typedef GUIList<const Vehicle*> GUIVehicleList;
typedef GUIList<const Vehicle*, CargoID> GUIVehicleList;
struct BaseVehicleListWindow : public Window {
GUIVehicleList vehicles; ///< The list of vehicles