diff options
author | rubidium <rubidium@openttd.org> | 2009-11-29 00:41:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-29 00:41:08 +0000 |
commit | 5d38d06313b3c2bc440283cc15cb1e86aa48cbf4 (patch) | |
tree | d19238f07c89292ae2e0517137724917438c236f /src/news_gui.cpp | |
parent | b00a5f1069b5bcf37af5d601e3e2828d0d09a1f0 (diff) | |
download | openttd-5d38d06313b3c2bc440283cc15cb1e86aa48cbf4.tar.xz |
(svn r18331) -Fix [FS#3334]: news items would with some chat 'bars' not be displayed fully. Fix by erikjanp.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 6a6876443..c36fe29ec 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -287,7 +287,7 @@ struct NewsWindow : Window { NewsWindow(const WindowDesc *desc, NewsItem *ni) : Window(), ni(ni) { NewsWindow::duration = 555; - const Window *w = FindWindowById(WC_SEND_NETWORK_MSG, 0); + const Window *w = FindWindowByClass(WC_SEND_NETWORK_MSG); this->chat_height = (w != NULL) ? w->height : 0; this->status_height = FindWindowById(WC_STATUS_BAR, 0)->height; |