From 7be2160cfb8d7c21e0e8df134af4d012b9295873 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 6 Jan 2008 20:54:55 +0000 Subject: (svn r11770) -Codechange: An engine type's type is EngineID, not byte. --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 96b9e6b95..e0f10eb39 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -235,7 +235,7 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) v->last_station_visited = INVALID_STATION; v->max_speed = rvi->max_speed; - v->engine_type = (byte)p1; + v->engine_type = (EngineID)p1; e = GetEngine(p1); v->reliability = e->reliability; -- cgit v1.2.3-70-g09d2