1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-18 03:59:09 +00:00

(svn r17574) -Fix (r17573): Insert NWID_SELECTION in nested_array when appropriate.

This commit is contained in:
alberth
2009-09-19 12:52:49 +00:00
parent ceab116065
commit 86395277d3

View File

@@ -1263,6 +1263,11 @@ void NWidgetStacked::SetIndex(int index)
void NWidgetStacked::SetupSmallestSize(Window *w, bool init_array)
{
if (this->index >= 0 && init_array) { // Fill w->nested_array[]
assert(w->nested_array_size > (uint)this->index);
w->nested_array[this->index] = this;
}
/* First sweep, recurse down and compute minimal size and filling. */
this->smallest_x = 0;
this->smallest_y = 0;