Changeset - r21043:2edcba17b807
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-26 13:27:34
rubidium@openttd.org
(svn r26123) -Fix: make sure the maximum row length when making company buttons is at least 1
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -2835,6 +2835,7 @@ NWidgetContainer *MakeWindowNWidgetTree(
 
 */
 
NWidgetBase *MakeCompanyButtonRows(int *biggest_index, int widget_first, int widget_last, int max_length, StringID button_tooltip)
 
{
 
	assert(max_length >= 1);
 
	NWidgetVertical *vert = NULL; // Storage for all rows.
 
	NWidgetHorizontal *hor = NULL; // Storage for buttons in one row.
 
	int hor_length = 0;
0 comments (0 inline, 0 general)