diff options
Diffstat (limited to 'src/cargotype.cpp')
-rw-r--r-- | src/cargotype.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cargotype.cpp b/src/cargotype.cpp index 0cfd7e2e9..28fbce38b 100644 --- a/src/cargotype.cpp +++ b/src/cargotype.cpp @@ -67,3 +67,9 @@ CargoID GetCargoIDByBitnum(byte bitnum) assert(_cargo_bitnum_map[bitnum] != CT_INVALID); return _cargo_bitnum_map[bitnum]; } + + +bool CargoSpec::IsValid() const +{ + return bitnum != INVALID_CARGO; +} |