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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user