aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0210df8..0c7e74d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -56,7 +56,7 @@ impl Trigger {
self.sample_pos += 1;
}
- if self.sample_pos > self.sample.len() {
+ if self.sample_pos == self.sample.len() {
self.playing = false;
}