summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-12 14:14:26 +0000
committerrubidium <rubidium@openttd.org>2010-12-12 14:14:26 +0000
commita029b2b83aa344fdd8ba1f7bc0915205c52daca0 (patch)
tree95fc2013ee1d0e8c8ecd5b02ec8b807047922267 /src/industry_gui.cpp
parent5910bde58367764387e00c76e14d7465be942e7f (diff)
downloadopenttd-a029b2b83aa344fdd8ba1f7bc0915205c52daca0.tar.xz
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index dd9fce88e..6bf3932c1 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -2564,7 +2564,7 @@ struct IndustryCargoesWindow : public Window {
case CFT_INDUSTRY:
if (fld->u.industry.ind_type < NUM_INDUSTRYTYPES && (this->ind_cargo >= NUM_INDUSTRYTYPES || fieldxy.x != 2)) {
- GuiShowTooltips(STR_INDUSTRY_CARGOES_INDUSTRY_TOOLTIP, 0, NULL, TCC_HOVER);
+ GuiShowTooltips(this, STR_INDUSTRY_CARGOES_INDUSTRY_TOOLTIP, 0, NULL, TCC_HOVER);
}
return;
@@ -2575,7 +2575,7 @@ struct IndustryCargoesWindow : public Window {
const CargoSpec *csp = CargoSpec::Get(cid);
uint64 params[5];
params[0] = csp->name;
- GuiShowTooltips(STR_INDUSTRY_CARGOES_CARGO_TOOLTIP, 1, params, TCC_HOVER);
+ GuiShowTooltips(this, STR_INDUSTRY_CARGOES_CARGO_TOOLTIP, 1, params, TCC_HOVER);
}
}