diff options
author | 2017-02-24 09:34:15 +1100 | |
---|---|---|
committer | 2017-02-24 09:34:15 +1100 | |
commit | 759933ded7422e58b69e0f50841311067a156557 (patch) | |
tree | 2a779c0da74c2d661df7349100a369e403a29d94 /src/lib/util/options.cpp | |
parent | 41c23502668b45d1d62b3f46e99731bd6e5e41a0 (diff) | |
parent | ba6fa16daf040b62f7d23ed4b0cc573bf274f306 (diff) |
Fixed an issue where device options (e.g. -cart) were reported as unknown when they actually worked (#2081)
Conflicts:
src/frontend/mame/clifront.cpp
Diffstat (limited to 'src/lib/util/options.cpp')
-rw-r--r-- | src/lib/util/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/options.cpp b/src/lib/util/options.cpp index 9cd9af1814c..a7d59dee105 100644 --- a/src/lib/util/options.cpp +++ b/src/lib/util/options.cpp @@ -517,8 +517,8 @@ std::string core_options::pluck_from_command_line(std::vector<std::string> &args result = std::move(args[i + 1]); // remove this arguments from the list - auto const pos = std::advance(args.begin(), i); - args.erase(pos, std::advance(pos, 2)); + auto const pos = std::next(args.begin(), i); + args.erase(pos, std::next(pos, 2)); break; } } |