Fix error when compiling union events with variables
@@ -675,6 +675,7 @@ class ScriptBuilder {
}
if(unionValue.type === "variable") {
this.variableCopy(variable, unionValue.value);
+ return variable;
}
throw new Error(`Union type "${unionValue.type}" unknown.`);
}
