War on std::string::find compares against -1 instead of std::string::npos

This commit is contained in:
Inusaito Sayori
2014-09-18 21:31:41 -04:00
parent 3b631a4f90
commit d2dd03dcba
3 changed files with 8 additions and 8 deletions

View File

@@ -507,10 +507,10 @@ public:
gVFS->getData(data->assetid, data->type, buffer, 0, size);
std::string script((char*)buffer);
BOOL domono = FALSE;//Phox- this needs to be fixed when the preproc is added = JCLSLPreprocessor::mono_directive(script);
*//*if(script.find("//mono\n") != -1)
*//*if(script.find("//mono\n") != std::string::npos)
{
domono = TRUE;
}else if(script.find("//lsl2\n") != -1)
}else if(script.find("//lsl2\n") != std::string::npos)
{
domono = FALSE;
}*//*