Fix always false comparison in aoengine.cpp. Unsigned integers cannot return std::string::npos

Cinders 2013-02-18 21:27:49 -07:00
parent 2c9e821188
commit 931b7f4df0
1 changed files with 2 additions and 2 deletions

View File

@ -1617,14 +1617,14 @@ void AOEngine::parseNotecard(const char* buffer)
continue;
}
U32 endTag=line.find("]");
if(endTag==std::string::npos)
if(line.find("]") == std::string::npos)
{
LLSD args;
args["LINE"]=(S32) index;
LLNotificationsUtil::add("AOImportNoValidDelimiter",args);
continue;
}
U32 endTag = line.find("]");
std::string stateName=line.substr(1,endTag-1);
LLStringUtil::trim(stateName);