fixed errors in cmdparser

This commit is contained in:
itsyplen 2011-08-04 16:12:55 +00:00
parent 6d3e92517c
commit 9b1cb7227a

View File

@ -151,7 +151,7 @@ CommandLineParser::CommandLineParser(int argc, const char* argv[], const char* k
break;
}
if (!hasValueThroughEq && (values_buffer.find('false') == values_buffer.npos) &&
if (!hasValueThroughEq && (values_buffer.find("false") == values_buffer.npos) &&
((curName == keysVector[0]) || (curName == keysVector[1])))
{
@ -160,7 +160,7 @@ CommandLineParser::CommandLineParser(int argc, const char* argv[], const char* k
break;
}
if (!hasValueThroughEq && (values_buffer.find('false') != values_buffer.npos)
if (!hasValueThroughEq && (values_buffer.find("false") != values_buffer.npos)
&& ((curName == keysVector[0]) || (curName == keysVector[1])))
{