mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Fix command line parsing
Broken by 6bc4cad0ed
, e.g.
minetest --worldname world
would be parsed as
minetest --worldname --worldname
This commit is contained in:
@@ -215,7 +215,7 @@ bool Settings::parseCommandLine(int argc, char *argv[],
|
|||||||
<< name << "\": missing value" << std::endl;
|
<< name << "\": missing value" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
value = argv[i++];
|
value = argv[++i];
|
||||||
}
|
}
|
||||||
|
|
||||||
set(name, value);
|
set(name, value);
|
||||||
|
Reference in New Issue
Block a user