diff options
author | alberth <alberth@openttd.org> | 2011-02-25 22:04:38 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2011-02-25 22:04:38 +0000 |
commit | 31386c42a7aa51b5b6a7abfc728b9ed4e34df0ea (patch) | |
tree | 793449a253b91916b65c373f54b4544a8c6c86b8 /src/settings.cpp | |
parent | 1dbc0a20bed5cd85035b4f84a649c4f7386b07ab (diff) | |
download | openttd-31386c42a7aa51b5b6a7abfc728b9ed4e34df0ea.tar.xz |
(svn r22145) -Codechange: Do explicit test for non-bool values.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 68e52fec6..6d36f623b 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -781,7 +781,7 @@ static bool CheckInterval(int32 p1) vds = &Company::Get(_current_company)->settings.vehicle; } - if (p1) { + if (p1 != 0) { vds->servint_trains = 50; vds->servint_roadveh = 50; vds->servint_aircraft = 50; |