Skip to content

Commit

Permalink
Tweak group number label
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Feb 14, 2024
1 parent a9f5574 commit 315525f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hci/manufacture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,11 @@ class ManufactureObjectButton : public ObjectButton
if (factory->psAssemblyPoint == nullptr)
{
factoryNumberLabel->setString("");
return;
}
factoryNumberLabel->setString(WzString::fromUtf8(astringf("%u", factory->psAssemblyPoint->factoryInc + 1)));
else
{
factoryNumberLabel->setString(WzString::fromUtf8(astringf("%u", factory->psAssemblyPoint->factoryInc + 1)));
}
if (psStruct->productToGroup != UBYTE_MAX)
{
factoryAssignGroupLabel->setString(WzString::fromUtf8(astringf("%u", psStruct->productToGroup)));
Expand Down

0 comments on commit 315525f

Please sign in to comment.