Get script group via public method, not direct property access

This commit is contained in:
Jordan Eldredge 2019-09-21 13:45:55 -07:00
parent 6cabec22a9
commit b555cc720a

View file

@ -319,7 +319,7 @@ export function* interpret(start, program, stack = []) {
const classesOffset = command.arg;
const Klass = classes[classesOffset];
const system = variables[0].getValue();
const klassInst = new Klass(null, system.scriptGroup);
const klassInst = new Klass(null, system.getscriptgroup());
stack.push(klassInst);
break;
}