From e604b76d18b5d762939b93316e2fcf7da454fae8 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Tue, 31 May 2022 14:44:05 +0100 Subject: [PATCH] Fix: List a max of four share owners instead of three An AI company may have four different share owners, but the company information window is limited to display a max of three. This commit increases that limit. --- src/company_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/company_gui.cpp b/src/company_gui.cpp index b8167d222a..fdcc7309df 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -2222,7 +2222,7 @@ static const NWidgetPart _nested_company_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(NWID_SELECTION, INVALID_COLOUR, WID_C_SELECT_DESC_OWNERS), NWidget(NWID_VERTICAL), SetPIP(5, 5, 4), - NWidget(WWT_EMPTY, INVALID_COLOUR, WID_C_DESC_OWNERS), SetMinimalTextLines(3, 0), + NWidget(WWT_EMPTY, INVALID_COLOUR, WID_C_DESC_OWNERS), SetMinimalTextLines(MAX_COMPANY_SHARE_OWNERS, 0), NWidget(NWID_SPACER), SetFill(0, 1), EndContainer(), EndContainer(),