mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r21451) -Fix (r21449): make sure the matrix's child widget's size is updated with the right widget index
This commit is contained in:
parent
84b4057342
commit
c1efcb76ca
@ -1418,6 +1418,8 @@ void NWidgetMatrix::SetupSmallestSize(Window *w, bool init_array)
|
||||
w->nested_array[this->index] = this;
|
||||
}
|
||||
|
||||
/* Reset the widget number. */
|
||||
SB(dynamic_cast<NWidgetCore *>(this->head)->index, 16, 16, 0);
|
||||
this->head->SetupSmallestSize(w, init_array);
|
||||
|
||||
Dimension padding = {this->pip_pre + this->pip_post, this->pip_pre + this->pip_post};
|
||||
|
Loading…
Reference in New Issue
Block a user