Lua scripts now in custom functions!

This commit is contained in:
bsongis
2014-06-12 18:18:42 +02:00
parent c23f1e974a
commit 89433127c4
17 changed files with 239 additions and 93 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ getvalue_t getValue(uint8_t i)
else if (i<MIXSRC_LAST_LUA) {
#if defined(LUA_MODEL_SCRIPTS)
div_t qr = div(i-MIXSRC_FIRST_LUA, MAX_SCRIPT_OUTPUTS);
return scriptInternalData[qr.quot].outputs[qr.rem].value;
return scriptInputsOutputs[qr.quot].outputs[qr.rem].value;
#else
return 0;
#endif