Fix command line parsing

Broken by 6bc4cad0ed, e.g.
  minetest --worldname world
would be parsed as
  minetest --worldname --worldname
master
Kahrl 2014-09-22 11:02:26 +02:00
parent 56195dc2e4
commit 5ca5630a11
1 changed files with 1 additions and 1 deletions

View File

@ -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);