summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/inputmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/inputmap.cpp')
-rw-r--r--src/frontend/mame/ui/inputmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/inputmap.cpp b/src/frontend/mame/ui/inputmap.cpp
index bfb68e40da0..c0a36642e5d 100644
--- a/src/frontend/mame/ui/inputmap.cpp
+++ b/src/frontend/mame/ui/inputmap.cpp
@@ -84,7 +84,7 @@ void menu_input_general::populate(float &customtop, float &custombottom)
for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
{
// build an entry for the standard sequence
- input_item_data &item(*data.emplace(data.end()));
+ input_item_data &item(data.emplace_back());
item.ref = &entry;
item.seqtype = seqtype;
item.seq = machine().ioport().type_seq(entry.type(), entry.player(), seqtype);
@@ -155,7 +155,7 @@ void menu_input_specific::populate(float &customtop, float &custombottom)
for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
{
// build an entry for the standard sequence
- input_item_data &item(*data.emplace(data.end()));
+ input_item_data &item(data.emplace_back());
item.ref = &field;
item.seqtype = seqtype;
item.seq = field.seq(seqtype);