diff options
author | alberth <alberth@openttd.org> | 2010-03-14 14:36:37 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-14 14:36:37 +0000 |
commit | 28b0a3e335701d3fea872590476732487bad3efa (patch) | |
tree | b0b7b48bd9f86bfe0cf8c9f3373d6aab83862dbd /src/bridge_gui.cpp | |
parent | 6601ecc87a81257c022388b02fb03db39de3bd74 (diff) | |
download | openttd-28b0a3e335701d3fea872590476732487bad3efa.tar.xz |
(svn r19419) -Codechange: Use failed CommandCost object to retrieve message instead of _error_message.
Diffstat (limited to 'src/bridge_gui.cpp')
-rw-r--r-- | src/bridge_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index cccfbedde..85b2e7b48 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -387,7 +387,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transpo GUIBridgeList *bl = NULL; if (ret.Failed()) { - errmsg = _error_message; + errmsg = ret.GetErrorMessage(); } else { /* check which bridges can be built */ const uint tot_bridgedata_len = CalcBridgeLenCostFactor(bridge_len + 2); |