summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-09-20 09:38:09 +0000
committerpeter1138 <peter1138@openttd.org>2005-09-20 09:38:09 +0000
commita3b3c3cf31da40e0ee03badde5cbd4bc3931f357 (patch)
treef05968c83f980b3f2fd5505a72dd6c0613108726
parent3d197e08610fc932b0cd147234e93f5538b66fc8 (diff)
downloadopenttd-a3b3c3cf31da40e0ee03badde5cbd4bc3931f357.tar.xz
(svn r2964) Fix: newgrf: Include missing grf feature canal.
-rw-r--r--newgrf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index c10562001..ace4d72d7 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -47,6 +47,7 @@ typedef enum grfspec_feature {
GSF_SHIP,
GSF_AIRCRAFT,
GSF_STATION,
+ GSF_CANAL,
GSF_BRIDGE,
GSF_TOWNHOUSE,
} grfspec_feature;
@@ -1009,12 +1010,13 @@ static void VehicleChangeInfo(byte *buf, int len)
* V new-info new bytes of info (variable size; depends on properties) */
/* TODO: Bridges, town houses. */
- static const VCI_Handler handler[7] = {
+ static const VCI_Handler handler[] = {
/* GSF_TRAIN */ RailVehicleChangeInfo,
/* GSF_ROAD */ RoadVehicleChangeInfo,
/* GSF_SHIP */ ShipVehicleChangeInfo,
/* GSF_AIRCRAFT */ AircraftVehicleChangeInfo,
/* GSF_STATION */ StationChangeInfo,
+ /* GSF_CANAL */ NULL,
/* GSF_BRIDGE */ NULL,
/* GSF_TOWNHOUSE */NULL,
};