1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r19419) -Codechange: Use failed CommandCost object to retrieve message instead of _error_message.

This commit is contained in:
alberth
2010-03-14 14:36:37 +00:00
parent 6601ecc87a
commit 28b0a3e335
3 changed files with 3 additions and 3 deletions

View File

@@ -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);