Changeset - r28498:139f88c72711
[Not reviewed]
master
0 1 0
frosch - 11 months ago 2024-01-17 21:26:33
frosch@openttd.org
Fix #11819, aa5ba5b: Out-of-bounds access in linkgraph GUI. (#11821)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/linkgraph/linkgraph_gui.cpp
Show inline comments
 
@@ -680,7 +680,7 @@ void LinkGraphLegendWindow::UpdateOverla
 
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());
 
	}
0 comments (0 inline, 0 general)