Skip to content

Commit

Permalink
Merge branch 'PetrovAA_CommandLineOptionsManagerFixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Apr 17, 2017
2 parents 68fcaa9 + 1ba3ab6 commit 75f66c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
Binary file added MSVS/EasyCmdLineReader.1.0.3.nupkg
Binary file not shown.
4 changes: 2 additions & 2 deletions src/manager/CommandLineOptionsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace EasySoftCmdLine
bool CommandLineOptionsManager :: TryGetIntValue(std::string key, int& outValue)
{
std::string value;
if(TryGetValue(key, value))
if(!TryGetValue(key, value))
return false;
outValue = atoi(value.c_str());
return true;
Expand All @@ -49,7 +49,7 @@ namespace EasySoftCmdLine
bool CommandLineOptionsManager :: TryGetDoubleValue(std::string key, double& outValue)
{
std::string value;
if(TryGetValue(key, value))
if(!TryGetValue(key, value))
return false;
outValue = atof(value.c_str());
return true;
Expand Down

0 comments on commit 75f66c8

Please sign in to comment.