aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-09-22 11:02:26 +0200
committerKahrl <kahrl@gmx.net>2014-09-22 11:02:26 +0200
commit5ca5630a116458910fdffa097417bb211b89ba4e (patch)
tree834ab19e89f966f8fa184db02021bebdbe1ce0d8
parent56195dc2e45b85b7177cfa97aade77e92cff8805 (diff)
downloadminetest-5ca5630a116458910fdffa097417bb211b89ba4e.tar.gz
minetest-5ca5630a116458910fdffa097417bb211b89ba4e.tar.bz2
minetest-5ca5630a116458910fdffa097417bb211b89ba4e.zip
Fix command line parsing
Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379, e.g. minetest --worldname world would be parsed as minetest --worldname --worldname
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 760f07e21..ca0775330 100644
--- a/src/settings.cpp
+++ b/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);