Fix FindFlagChar giving '?' for Admin_Custom6 (nobug, r=asherkin).

This commit is contained in:
Nicholas Hastings 2014-03-30 12:41:07 -04:00
parent 2d616a5995
commit e708cdf28c

View File

@ -287,16 +287,14 @@ void AdminCache::OnSourceModLevelChange(const char *mapName)
/* For now, we only read these once per level. */
s_FlagReader.LoadLevels();
memset(g_ReverseFlags, '?', sizeof(g_ReverseFlags));
for (i = 0; i < 26; i++)
{
if (FindFlag('a' + i, &flag))
{
g_ReverseFlags[flag] = 'a' + i;
}
else
{
g_ReverseFlags[flag] = '?';
}
}
}