diff --git a/core/src/main/java/org/lflang/generator/c/CGenerator.java b/core/src/main/java/org/lflang/generator/c/CGenerator.java index 21d097d023..cc3a383500 100644 --- a/core/src/main/java/org/lflang/generator/c/CGenerator.java +++ b/core/src/main/java/org/lflang/generator/c/CGenerator.java @@ -1728,8 +1728,8 @@ public void generateReactorInstance(ReactorInstance instance) { // Generate the parent self struct for children to access its params initializeTriggerObjects.pr( CUtil.selfType(instance) - + " *self = " + - CUtil.reactorRefName(instance) + + " *self = " + + CUtil.reactorRefName(instance) + "[" + CUtil.runtimeIndex(instance) + "];");