@@ -677,13 +677,13 @@ void LinkGraphLegendWindow::UpdateOverla
/**
* Update the overlay with the new cargo selection.
*/
void LinkGraphLegendWindow::UpdateOverlayCargoes()
{
CargoTypes mask = 0;
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
for (uint c = 0; c < num_cargo; c++) {
if (!this->IsWidgetLowered(WID_LGL_CARGO_FIRST + c)) continue;
SetBit(mask, _sorted_cargo_specs[c]->Index());
}
this->overlay->SetCargoMask(mask);
Status change: