summaryrefslogtreecommitdiff
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
commit63ccdcf082f5e58c755c458a32c8f13ed06a8705 (patch)
tree067dd37176b36db28361b8a374a3c1497a1f0b88
parent457930c4831f6d842be11df407e19d86e27ebcf2 (diff)
downloadopenttd-63ccdcf082f5e58c755c458a32c8f13ed06a8705.tar.xz
(svn r9327) -Fix (r9301): Fix warning on MSVC
-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;
}