Fix unsigned compiler warning.

This commit is contained in:
Kyle Sanderson 2017-10-09 13:00:52 -07:00 committed by Ruben Gonzalez
parent 687db96b38
commit 2658636377

View File

@ -479,7 +479,7 @@ const char *GetTranslatedWeaponAlias(const char *weapon)
"nvgs", "nightvision"
};
for (int i = 0; i < SM_ARRAYSIZE(szAliases) / 2; i++)
for (size_t i = 0; i < SM_ARRAYSIZE(szAliases) / 2; i++)
{
if (Q_stristr(GetWeaponNameFromClassname(weapon), szAliases[i * 2]) != 0)
return szAliases[i * 2 + 1];