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

(svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used.

This commit is contained in:
alberth
2009-07-20 18:39:38 +00:00
parent 38d88f10fe
commit 1978c7dc87
2 changed files with 2 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ void Window::RaiseButtons()
}
if (this->nested_array != NULL) {
for (uint i = 0; i < this->nested_array_size; i++) {
if (this->IsWidgetLowered(i)) {
if (this->nested_array[i] != NULL && this->IsWidgetLowered(i)) {
this->RaiseWidget(i);
this->InvalidateWidget(i);
}