summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-03-19 12:58:43 +0000
committerpeter1138 <peter1138@openttd.org>2007-03-19 12:58:43 +0000
commit21c69a550aa2e42139f760584f339f9d81f06190 (patch)
tree067dd37176b36db28361b8a374a3c1497a1f0b88 /src
parent5a2236dd84bac889183e8d78c204fea81dfc51ea (diff)
downloadopenttd-21c69a550aa2e42139f760584f339f9d81f06190.tar.xz
(svn r9327) -Fix (r9301): Fix warning on MSVC
Diffstat (limited to 'src')
-rw-r--r--src/cargotype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargotype.h b/src/cargotype.h
index c3bccf791..e34c6980a 100644
--- a/src/cargotype.h
+++ b/src/cargotype.h
@@ -59,7 +59,7 @@ CargoID GetCargoIDByLabel(CargoLabel cl);
static inline bool IsCargoInClass(CargoID c, uint16 cc)
{
- return GetCargo(c)->classes & cc;
+ return (GetCargo(c)->classes & cc) != 0;
}