diff --git a/common/city.cpp b/common/city.cpp index 29feae2fac..c4757b1087 100644 --- a/common/city.cpp +++ b/common/city.cpp @@ -2878,7 +2878,8 @@ void set_city_production(struct city *pcity, { pcity->waste[o] = city_waste(pcity, o, pcity->prod[o] * pcity->bonus[o] / 100, nullptr, - gov_centers, pcwaste ? &pcwaste->at(o) : nullptr); + gov_centers, + pcwaste && !pcwaste->empty() ? &pcwaste->at(o) : nullptr); } output_type_iterate_end;