diff options
author | michi_cc <michi_cc@openttd.org> | 2015-08-10 20:24:13 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2015-08-10 20:24:13 +0000 |
commit | 2b8bb12d623a64897636234ed3c508517a1a2ba6 (patch) | |
tree | 015abed42269cf73bb83b2f92b029084735d82cd /src/road_gui.cpp | |
parent | 35b77450f80580da2aa7f087aa2a1631b92ebd62 (diff) | |
download | openttd-2b8bb12d623a64897636234ed3c508517a1a2ba6.tar.xz |
(svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing conversions in initializer lists.
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r-- | src/road_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index b158482ef..92c660e8a 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -233,7 +233,7 @@ static void PlaceRoadStop(TileIndex start_tile, TileIndex end_tile, uint32 p2, u p2 |= ddir << 6; // Set the DiagDirecion into p2 bits 6 and 7. TileArea ta(start_tile, end_tile); - CommandContainer cmdcont = { ta.tile, ta.w | ta.h << 8, p2, cmd, CcRoadStop, "" }; + CommandContainer cmdcont = { ta.tile, (uint32)(ta.w | ta.h << 8), p2, cmd, CcRoadStop, "" }; ShowSelectStationIfNeeded(cmdcont, ta); } |