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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user