summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index ba167b4..c30147f 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -263,9 +263,7 @@ bool DrumGizmo::run(size_t pos, sample_t *samples, size_t nsamples)
i = kit.instruments[d];
}
- if(!i->isValid()) continue;
-
- if(i == NULL) {
+ if(i == NULL || !i->isValid()) {
ERR(drumgizmo, "Missing Instrument %d.\n", evs[e].instrument);
continue;
}