From 21c69a550aa2e42139f760584f339f9d81f06190 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 19 Mar 2007 12:58:43 +0000 Subject: (svn r9327) -Fix (r9301): Fix warning on MSVC --- src/cargotype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-54-g00ecf