error check

This commit is contained in:
Glenn Maynard
2004-06-06 21:04:48 +00:00
parent fa114e148a
commit ae99f03a4b
2 changed files with 27 additions and 8 deletions
+6 -1
View File
@@ -1582,7 +1582,12 @@ void GameState::StoreRankingName( PlayerNumber pn, CString name )
while (!file.AtEOF())
{
line = file.GetLine();
if( file.GetLine( line ) == -1 )
{
LOG->Warn( "Error reading \"%s\": %s", NAMES_BLACKLIST_FILE, file.GetError().c_str() );
break;
}
line.MakeUpper();
if( !line.empty() && name.Find(line) != -1 ) // name contains a bad word
{