From: Kahrl Date: Mon, 22 Sep 2014 09:02:26 +0000 (+0200) Subject: Fix command line parsing X-Git-Tag: 0.4.11~256 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ca5630a116458910fdffa097417bb211b89ba4e;p=oweals%2Fminetest.git Fix command line parsing Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379, e.g. minetest --worldname world would be parsed as minetest --worldname --worldname --- 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);