The more reasonable inference is:
Water depth likely affects wading birds’ access to food and thus affects wading birds’ reproductive success.
This inference is supported by the fact that fewer nests were observed in dry years, suggesting that the availability of food (fish) is linked to water depth, which can influence the reproductive success of wading birds.