summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-07-20 18:39:38 +0000
committeralberth <alberth@openttd.org>2009-07-20 18:39:38 +0000
commit1978c7dc87cb39ff1a94f200cbba9034ca142f27 (patch)
treed33f3182450d013f0b3992b179cbb05f6b2df130 /src/window.cpp
parent38d88f10fe3b1e5fb46743f838234f6f9486eb29 (diff)
downloadopenttd-1978c7dc87cb39ff1a94f200cbba9034ca142f27.tar.xz
(svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 86b774364..00e42ff72 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -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);
}