mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-16 17:15:05 +01:00
(svn r24378) -Fix [FS#5218]: ReInit could crash for windows with NWidgetMatrix widgets.
This commit is contained in:
parent
95b2f4ba95
commit
4843bad1ac
@ -1528,9 +1528,7 @@ void NWidgetMatrix::AssignSizePosition(SizingType sizing, uint x, uint y, uint g
|
||||
/* When resizing, update the scrollbar's count. E.g. with a vertical
|
||||
* scrollbar becoming wider or narrower means the amount of rows in
|
||||
* the scrollbar becomes respectively smaller or higher. */
|
||||
if (sizing == ST_RESIZE) {
|
||||
this->SetCount(this->count);
|
||||
}
|
||||
this->SetCount(this->count);
|
||||
}
|
||||
|
||||
void NWidgetMatrix::FillNestedArray(NWidgetBase **array, uint length)
|
||||
|
Loading…
Reference in New Issue
Block a user