Fix FindFlagChar not finding char for AdminFlag_Custom6.

This commit is contained in:
Nicholas Hastings 2015-02-03 10:32:34 -05:00
parent 84a59c6fb7
commit e88039d4e0

View File

@ -1600,17 +1600,13 @@ bool AdminCache::FindFlag(char c, AdminFlag *pAdmFlag)
bool AdminCache::FindFlagChar(AdminFlag flag, char *c)
{
if (!g_FlagCharSet[flag])
{
return false;
}
char flagchar = g_ReverseFlags[flag];
if (c)
{
*c = g_ReverseFlags[flag];
*c = flagchar;
}
return true;
return flagchar != '?';
}
FlagBits AdminCache::ReadFlagString(const char *flags, const char **end)