summaryrefslogtreecommitdiff
path: root/src/cheat_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-10-04 19:35:40 +0000
committerfrosch <frosch@openttd.org>2010-10-04 19:35:40 +0000
commit566ba0fcccbf414c5128bc596486b90ba985c7b5 (patch)
treed1823906c030a95e4bd709ca813b47f59b418d71 /src/cheat_gui.cpp
parent7f060bdaf5ae6ad0ae0b354eb04ad63a8b34ffa6 (diff)
downloadopenttd-566ba0fcccbf414c5128bc596486b90ba985c7b5.tar.xz
(svn r20897) -Codechange: Store the result of IsProductionAlterable() in a member variable of IndustryViewWindow.
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r--src/cheat_gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index cc7bbd574..7b561673b 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -66,8 +66,9 @@ static int32 ClickChangeCompanyCheat(int32 p1, int32 p2)
*/
static int32 ClickSetProdCheat(int32 p1, int32 p2)
{
- SetWindowClassesDirty(WC_INDUSTRY_VIEW);
- return p1;
+ _cheats.setup_prod.value = p1;
+ InvalidateWindowClassesData(WC_INDUSTRY_VIEW);
+ return _cheats.setup_prod.value;
}
/**