From 9378e9fc9af6d779e33892135ba3dcce75a864b6 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Sun, 4 Sep 2011 09:14:35 +0000 Subject: [PATCH] - Fix some code that (un)luckily was compiling without error, as per my comment in issue 720 --- projects/mtg/src/Subtypes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }