- Fix some code that (un)luckily was compiling without error, as per my comment in issue 720
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user