summaryrefslogtreecommitdiff
path: root/src/vehicle_func.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle_func.h')
-rw-r--r--src/vehicle_func.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicle_func.h b/src/vehicle_func.h
index efc07ed07..7082404ae 100644
--- a/src/vehicle_func.h
+++ b/src/vehicle_func.h
@@ -21,6 +21,7 @@
#include "newgrf_config.h"
#include "track_type.h"
#include "livery.h"
+#include "cargotype.h"
#define is_custom_sprite(x) (x >= 0xFD)
#define IS_CUSTOM_FIRSTHEAD_SPRITE(x) (x == 0xFD)
@@ -44,7 +45,7 @@ byte VehicleRandomBits();
void ResetVehiclePosHash();
void ResetVehicleColourMap();
-byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for);
+byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for, CargoID dest_cargo_type = INVALID_CARGO);
void ViewportAddVehicles(DrawPixelInfo *dpi);