station_cmd.c
changeset 817 4f9377b7fd2b
parent 755 823358e83abf
child 847 e0d8d5ef95b9
--- a/station_cmd.c	Tue Dec 28 09:55:55 2004 +0000
+++ b/station_cmd.c	Tue Dec 28 11:51:31 2004 +0000
@@ -105,7 +105,7 @@
 
 static bool CheckStationSpreadOut(Station *st, uint tile, int w, int h)
 {
-	byte station_index = st->index;
+	uint16 station_index = st->index;
 	uint i;
 	uint x1 = GET_TILE_X(tile);
 	uint y1 = GET_TILE_Y(tile);
@@ -2168,7 +2168,7 @@
 
 static uint32 VehicleEnter_Station(Vehicle *v, uint tile, int x, int y)
 {
-	byte station_id;
+	uint16 station_id;
 	byte dir;
 	uint16 spd;
 
@@ -2482,7 +2482,8 @@
 uint MoveGoodsToStation(uint tile, int w, int h, int type, uint amount)
 {
 	Station *around_ptr[8];
-	byte around[8], st_index;
+	byte around[8];
+	uint16 st_index;
 	int i;
 	Station *st;
 	uint moved;