diff --git a/projects/mtg/src/Subtypes.cpp b/projects/mtg/src/Subtypes.cpp index 05eb2858f..a23ead76c 100644 --- a/projects/mtg/src/Subtypes.cpp +++ b/projects/mtg/src/Subtypes.cpp @@ -65,8 +65,9 @@ string Subtypes::find(unsigned int id) bool Subtypes::isSubtypeOfType(unsigned int subtype, unsigned int type) { - if(subtype >= size_t(subtypesToType.size())) + if((size_t)subtype >= subtypesToType.size()) return false; + return (subtypesToType[subtype] == type); }