Skip to content

Commit

Permalink
Fix command line parsing
Browse files Browse the repository at this point in the history
Broken by 6bc4cad, e.g.
  minetest --worldname world
would be parsed as
  minetest --worldname --worldname
  • Loading branch information
kahrl committed Sep 22, 2014
1 parent 56195dc commit 5ca5630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings.cpp
Expand Up @@ -215,7 +215,7 @@ bool Settings::parseCommandLine(int argc, char *argv[],
<< name << "\": missing value" << std::endl;
return false;
}
value = argv[i++];
value = argv[++i];
}

set(name, value);
Expand Down

0 comments on commit 5ca5630

Please sign in to comment.