summaryrefslogtreecommitdiff
path: root/src/cheat_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-15 22:08:57 +0000
committerrubidium <rubidium@openttd.org>2010-10-15 22:08:57 +0000
commit5ed77b491924443fe61762860ccda861575d57bb (patch)
treef3f577b739dea8693215259b5c0b184e49055326 /src/cheat_gui.cpp
parent234bee0858b3c135f0827be63e904b8edacdee90 (diff)
downloadopenttd-5ed77b491924443fe61762860ccda861575d57bb.tar.xz
(svn r20939) -Fix: some MSVC warnings
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r--src/cheat_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index 7b561673b..0b3aa1db4 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -66,7 +66,7 @@ static int32 ClickChangeCompanyCheat(int32 p1, int32 p2)
*/
static int32 ClickSetProdCheat(int32 p1, int32 p2)
{
- _cheats.setup_prod.value = p1;
+ _cheats.setup_prod.value = (p1 != 0);
InvalidateWindowClassesData(WC_INDUSTRY_VIEW);
return _cheats.setup_prod.value;
}