- Fix some code that (un)luckily was compiling without error, as per my comment in issue 720

This commit is contained in:
wagic.the.homebrew
2011-09-04 09:14:35 +00:00
parent ad72c0ddc3
commit 9378e9fc9a

View File

@@ -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);
}