diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -279,7 +279,7 @@ CommandCost CmdBuildRailWaypoint(DoComma DirtyCompanyInfrastructureWindows(wp->owner); } - return CommandCost(EXPENSES_CONSTRUCTION, count * _price[PR_BUILD_WAYPOINT_RAIL]); + return CommandCost(EXPENSES_T_TRAIN_CON, count * _price[PR_BUILD_WAYPOINT_RAIL]); } /** @@ -299,7 +299,7 @@ CommandCost CmdBuildBuoy(DoCommandFlag f Waypoint *wp = FindDeletedWaypointCloseTo(tile, STR_SV_STNAME_BUOY, OWNER_NONE); if (wp == nullptr && !Waypoint::CanAllocateItem()) return_cmd_error(STR_ERROR_TOO_MANY_STATIONS_LOADING); - CommandCost cost(EXPENSES_CONSTRUCTION, _price[PR_BUILD_WAYPOINT_BUOY]); + CommandCost cost(EXPENSES_T_SHIP_CON, _price[PR_BUILD_WAYPOINT_BUOY]); if (!IsWaterTile(tile)) { CommandCost ret = Command::Do(flags | DC_AUTO, tile); if (ret.Failed()) return ret; @@ -373,7 +373,7 @@ CommandCost RemoveBuoy(TileIndex tile, D wp->delete_ctr = 0; } - return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_CLEAR_WAYPOINT_BUOY]); + return CommandCost(EXPENSES_T_SHIP_CON, _price[PR_CLEAR_WAYPOINT_BUOY]); } /**