diff --git a/src/core/chuck_emit.cpp b/src/core/chuck_emit.cpp index dda6cb75a..e719c45d4 100644 --- a/src/core/chuck_emit.cpp +++ b/src/core/chuck_emit.cpp @@ -254,35 +254,24 @@ Chuck_VM_Code * emit_engine_emit_prog( Chuck_Emitter * emit, a_Program prog, prog = prog->next; } - // make sure we are good so far - if( ret ) + // iterate over func defs, as long as `ret` is true + for( size_t i = 0; ret && (ishould_replace_dac ) + // 1.5.4.4 (ge) added ret check + if( ret && emit->should_replace_dac ) { if( !emit->env->vm()->globals_manager()->is_global_ugen_init( emit->dac_replacement ) ) {