forked from Mirrorlandia_minetest/minetest
Fix command line parsing
Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379, e.g. minetest --worldname world would be parsed as minetest --worldname --worldname
This commit is contained in:
parent
56195dc2e4
commit
5ca5630a11
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user