const MCountry GetCountryID( const char* pLanguage )
{
ASSERT( (0 != pLanguage) && (0 < strlen(pLanguage)) ); /*Line 47 where assert statement is */
if( 0 == pLanguage ) return MC_INVALID;
if( 0 == strlen(pLanguage) ) return MC_INVALID;
if( 0 == stricmp("kor", pLanguage) )
return MC_KOREA;
else if( 0 == stricmp("international", pLanguage) )
return MC_US;
else if( 0 == stricmp("jpn", pLanguage) )
return MC_JAPAN;
else if( 0 == stricmp("brz", pLanguage) )
return MC_BRAZIL;
else if( 0 == stricmp("ind", pLanguage) )
return MC_INDIA;
else if( 0 == stricmp("usa", pLanguage) )
return MC_NHNUSA;
else
{
ASSERT( 0 );
}
return MC_INVALID;
}
Not 100% what I should do to get around this problem. Could I comment out this section or somehow set the default country to usa to avoid this error?