Don't pass labels definition to when compiling subscripts
Labels defined outside subscripts (like timer or input script) where being passed to the compile. That made possible to use go to those labels without a compile error, leading to broken game behavior (see )
@@ -32,6 +32,7 @@ const compileEntityEvents = (input = [], options = {}) => {
...options,
output: eventOutput || output,
branch: eventBranch,
+ labels: eventBranch ? options.labels : {}
}),
};
const location = Object.assign(
