summaryrefslogtreecommitdiff
path: root/src/cheat_gui.cpp
diff options
context:
space:
mode:
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;
}
/**