diff options
author | alberth <alberth@openttd.org> | 2009-07-20 18:39:38 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-20 18:39:38 +0000 |
commit | 1978c7dc87cb39ff1a94f200cbba9034ca142f27 (patch) | |
tree | d33f3182450d013f0b3992b179cbb05f6b2df130 /src/window_gui.h | |
parent | 38d88f10fe3b1e5fb46743f838234f6f9486eb29 (diff) | |
download | openttd-1978c7dc87cb39ff1a94f200cbba9034ca142f27.tar.xz |
(svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 846a5a2db..45ef5b8f7 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -274,7 +274,7 @@ public: } if (this->nested_array != NULL) { assert(widget_index < this->nested_array_size); - this->nested_array[widget_index]->SetDisabled(disab_stat); + if (this->nested_array[widget_index] != NULL) this->nested_array[widget_index]->SetDisabled(disab_stat); } } |