Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Feb 17, 2025
1 parent 541336d commit 6207643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Game/UI/GuiHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ void CGuiHandler::SetShowingMetal(const SCommandDescription* cmdDesc)
show = false;
else if (cmdDesc->type == CMDTYPE_ICON_BUILDING) {
const UnitDef* ud = unitDefHandler->GetUnitDefByID(-cmdDesc->id);
show = ud->extractsMetal > 0;
show = ud && ud->extractsMetal > 0;
}

if (showingMetal && !show)
Expand Down

0 comments on commit 6207643

Please sign in to comment.