Skip to content

Commit 5ca5630

Browse files
committedSep 22, 2014
Fix command line parsing
Broken by 6bc4cad, e.g. minetest --worldname world would be parsed as minetest --worldname --worldname
1 parent 56195dc commit 5ca5630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/settings.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ bool Settings::parseCommandLine(int argc, char *argv[],
215215
<< name << "\": missing value" << std::endl;
216216
return false;
217217
}
218-
value = argv[i++];
218+
value = argv[++i];
219219
}
220220

221221
set(name, value);

0 commit comments

Comments
 (0)
Please sign in to comment.