main: Fix debug puppet index incrementing

The last one was empty.
This commit is contained in:
Nick Renieris 2022-06-26 06:31:21 +03:00
parent a416458e73
commit 951844e428

View file

@ -346,7 +346,7 @@ bool hakoniwaSequenceHook(HakoniwaSequence* sequence) {
if(debugPuppetIndex < 0) { if(debugPuppetIndex < 0) {
debugPuppetIndex = playBufSize - 2; debugPuppetIndex = playBufSize - 2;
} }
if (debugPuppetIndex >= playBufSize) if (debugPuppetIndex >= playBufSize - 1)
debugPuppetIndex = 0; debugPuppetIndex = 0;
} }