Skip to content

Commit add9317

Browse files
committed
reinit fix
1 parent 044866a commit add9317

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

OOps/goto_ops.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ int rireturn(CSOUND *csound, LINK *p)
114114
{
115115
IGN(p);
116116
IGN(csound);
117+
if (csound->oparms->realtime == 0)
118+
p->h.insdshead->init_done = 1;
117119
return OK;
118120
}
119121

@@ -129,6 +131,7 @@ int reinit(CSOUND *csound, GOTO *p)
129131
csound->reinitflag = p->h.insdshead->reinitflag = 0;
130132
}
131133
else {
134+
csound->curip->init_done = 0;
132135
unsigned long wp = csound->alloc_queue_wp;
133136
csound->alloc_queue[wp].ip = csound->ids;
134137
csound->alloc_queue[wp].type = 2;

0 commit comments

Comments
 (0)