summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-02-24 09:34:15 +1100
committer Vas Crabb <vas@vastheman.com>2017-02-24 09:34:15 +1100
commit759933ded7422e58b69e0f50841311067a156557 (patch)
tree2a779c0da74c2d661df7349100a369e403a29d94 /src/lib/util
parent41c23502668b45d1d62b3f46e99731bd6e5e41a0 (diff)
parentba6fa16daf040b62f7d23ed4b0cc573bf274f306 (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')
-rw-r--r--src/lib/util/options.cpp4
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;
}
}