fix compilation

This commit is contained in:
tildearrow 2024-03-09 23:33:23 -05:00
parent db9a11a674
commit 9270df0145

View file

@ -260,14 +260,12 @@ SafeWriter* DivEngine::saveCommand() {
int lastTick[DIV_MAX_CHANS]; int lastTick[DIV_MAX_CHANS];
memset(lastTick,0,DIV_MAX_CHANS*sizeof(int)); memset(lastTick,0,DIV_MAX_CHANS*sizeof(int));
bool wroteTickGlobal=false;
while (!done) { while (!done) {
if (nextTick(false,true) || !playing) { if (nextTick(false,true) || !playing) {
done=true; done=true;
break; break;
} }
// get command stream // get command stream
wroteTickGlobal=false;
memset(wroteTick,0,DIV_MAX_CHANS*sizeof(bool)); memset(wroteTick,0,DIV_MAX_CHANS*sizeof(bool));
if (curDivider!=divider) { if (curDivider!=divider) {
curDivider=divider; curDivider=divider;
@ -300,7 +298,6 @@ SafeWriter* DivEngine::saveCommand() {
cmdStream.clear(); cmdStream.clear();
tick++; tick++;
} }
wroteTickGlobal=false;
memset(wroteTick,0,DIV_MAX_CHANS*sizeof(bool)); memset(wroteTick,0,DIV_MAX_CHANS*sizeof(bool));
for (int i=0; i<chans; i++) { for (int i=0; i<chans; i++) {
WRITE_TICK(i); WRITE_TICK(i);