Skip to content
Snippets Groups Projects
Commit 5ca5630a authored by Kahrl's avatar Kahrl
Browse files

Fix command line parsing

Broken by 6bc4cad0, e.g.
  minetest --worldname world
would be parsed as
  minetest --worldname --worldname
parent 56195dc2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment