Merge pull request #147 from Arkshine/fix-linux-warning

Fix linux warning in previous commit
This commit is contained in:
Vincent Herbet 2014-10-24 11:43:04 +02:00
commit b2aa84ddbd

View File

@ -148,9 +148,9 @@ bool ColoredMenus(String & ModName)
const char * pModNames[] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" };
const size_t ModsCount = sizeof(pModNames) / sizeof(const char *);
for (int Iterator = 0u; Iterator < ModsCount; ++Iterator)
for (size_t i = 0; i < ModsCount; ++i)
{
if (ModName.compare(pModNames[Iterator]) == 0u)
if (ModName.compare(pModNames[i]) == 0)
return true; // this game modification currently supports colored menus
}