summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-30 11:01:05 +0000
committeralberth <alberth@openttd.org>2009-05-30 11:01:05 +0000
commit5eecf3e5cb6da881ca4095561d19dfc4364d2823 (patch)
tree05dc4a29ab068efd3c7137c7713c3dec422634b3 /src/window_gui.h
parent1448160e1e63a9a1945a91c79fe8c2068ba081bd (diff)
downloadopenttd-5eecf3e5cb6da881ca4095561d19dfc4364d2823.tar.xz
(svn r16463) -Cleanup: Code style fixes.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 6f30a49a3..4de82d9db 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -272,7 +272,7 @@ public:
{
if (widget_index < this->widget_count) {
/* Repaint the widget that loss focus. A focused edit box may else leave the caret left on the screen */
- if (this->focused_widget && this->focused_widget - this->widget != widget_index) {
+ if (this->focused_widget != NULL && this->focused_widget - this->widget != widget_index) {
this->InvalidateWidget(this->focused_widget - this->widget);
}
this->focused_widget = &this->widget[widget_index];