diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-06 20:54:55 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-06 20:54:55 +0000 |
commit | 7be2160cfb8d7c21e0e8df134af4d012b9295873 (patch) | |
tree | 112d1e1792de2abff8b384222c3af724fe79615b /src | |
parent | fd330ce743230adfda8a351ba96439bec565e510 (diff) | |
download | openttd-7be2160cfb8d7c21e0e8df134af4d012b9295873.tar.xz |
(svn r11770) -Codechange: An engine type's type is EngineID, not byte.
Diffstat (limited to 'src')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |