Skip to content
Permalink
Browse files

Fix command line parsing

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 5ca5630a116458910fdffa097417bb211b89ba4e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/settings.cpp
@@ -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 comments on commit 5ca5630

Please sign in to comment.
You can’t perform that action at this time.