Fix compilation error

This commit is contained in:
dP
2025-12-21 04:53:24 +05:00
parent d1de35d3cc
commit d0e0d3740a

View File

@@ -1558,8 +1558,8 @@ std::optional<ObjectHighlight> AirportBuildTool::SizedPlacementAction::GetObject
if (ac == nullptr) return std::nullopt;
auto as = ac->GetSpec(_selected_airport_index);
if (as == nullptr) return std::nullopt;
byte airport_type = as->GetIndex();
byte layout = _selected_airport_layout;
auto airport_type = as->GetIndex();
auto layout = _selected_airport_layout;
return ObjectHighlight::make_airport(tile, airport_type, layout);
}