From 8f783e604a4cd2c0bd2ae870b90a9e462a8490a1 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 2 Apr 2023 15:48:30 +0900 Subject: [PATCH] Minor fix --- src/engine/platform/k053260.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/platform/k053260.cpp b/src/engine/platform/k053260.cpp index f42a532d..801325f8 100644 --- a/src/engine/platform/k053260.cpp +++ b/src/engine/platform/k053260.cpp @@ -159,6 +159,7 @@ void DivPlatformK053260::tick(bool sysTick) { } if (chan[i].audPos>0) { start=start+MIN(chan[i].audPos,s->length8); + length=MAX(1,length-chan[i].audPos); } start=MIN(start,getSampleMemCapacity()-31); length=MIN(length,getSampleMemCapacity()-31);