summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-28 17:56:48 +0000
committerfrosch <frosch@openttd.org>2012-01-28 17:56:48 +0000
commit99c1f8af97b654a30eef9ac5845e00be040862cb (patch)
tree84ad7062a55e234abcc70b2289a0704cb3e779d0 /src/autoreplace_gui.cpp
parent8beedd4cb62461294c6984e9199cda75ded6c9e1 (diff)
downloadopenttd-99c1f8af97b654a30eef9ac5845e00be040862cb.tar.xz
(svn r23863) -Fix (r22981): '' != ' == 0'.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index ba8f3b57b..0a1b4686c 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -49,7 +49,7 @@ static int CDECL EngineNumberSorter(const EngineID *a, const EngineID *b)
*/
void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
{
- if (GetGroupNumEngines(_local_company, id_g, e) || GetGroupNumEngines(_local_company, ALL_GROUP, e) == 0) {
+ if (GetGroupNumEngines(_local_company, id_g, e) == 0 || GetGroupNumEngines(_local_company, ALL_GROUP, e) == 0) {
/* We don't have any of this engine type.
* Either we just sold the last one, we build a new one or we stopped replacing it.
* In all cases, we need to update the left list */