mirror of https://github.com/OpenTTD/OpenTTD
(svn r9327) -Fix (r9301): Fix warning on MSVC
parent
457930c483
commit
63ccdcf082
|
@ -59,7 +59,7 @@ CargoID GetCargoIDByLabel(CargoLabel cl);
|
||||||
|
|
||||||
static inline bool IsCargoInClass(CargoID c, uint16 cc)
|
static inline bool IsCargoInClass(CargoID c, uint16 cc)
|
||||||
{
|
{
|
||||||
return GetCargo(c)->classes & cc;
|
return (GetCargo(c)->classes & cc) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue