summaryrefslogtreecommitdiff
path: root/src/inputprocessor.cc
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-05-27 09:18:41 +0200
committerChristian Glöckner <cgloeckner@freenet.de>2016-05-27 09:18:41 +0200
commit3846acf047ff9a37d0cb7bedf7fb7faa46473111 (patch)
treedbcc69a0bb3451c53468d40bcb2ea6456f727c0b /src/inputprocessor.cc
parent52b37cac974eb150d49eee1f0b5ba3654f6d7716 (diff)
added another range-based loop
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r--src/inputprocessor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc
index a5d8213..1676090 100644
--- a/src/inputprocessor.cc
+++ b/src/inputprocessor.cc
@@ -72,7 +72,7 @@ bool InputProcessor::processOnset(const event_t& event, size_t pos, double resam
if(ev_instr < kit.instruments.size())
{
- instr = kit.instruments[ev_instr];
+ instr = kit.instruments[ev_instr].get();
}
if(instr == nullptr || !instr->isValid())