diff --git a/examples/gods_of_the_arena/lockstep.nim b/examples/gods_of_the_arena/lockstep.nim index 352959c0..5ac39906 100644 --- a/examples/gods_of_the_arena/lockstep.nim +++ b/examples/gods_of_the_arena/lockstep.nim @@ -110,7 +110,7 @@ proc installPolicy(batch: StepBatch, lane: ptr StepLane, index: int) = let program = compile(source, host, limits) bindHeroData(program) game.heroVms[index] = HeroVm( - runtime: initRuntime(program, host, limits), limits: limits, ready: true + runtime: initRuntime(program, host, limits), limits: limits, ready: true, legacyHeroData: program.usesHeroData() ) proc startLane(batch: StepBatch, lane: ptr StepLane, seed: int) = diff --git a/examples/gods_of_the_arena/training.nim b/examples/gods_of_the_arena/training.nim index 0a9a6f74..7997282c 100644 --- a/examples/gods_of_the_arena/training.nim +++ b/examples/gods_of_the_arena/training.nim @@ -197,7 +197,7 @@ proc runLane(args: LaneWorkerArgs) {.thread.} = let program = compile(source, host, limits) bindHeroData(program) game.heroVms[index] = HeroVm( - runtime: initRuntime(program, host, limits), limits: limits, ready: true + runtime: initRuntime(program, host, limits), limits: limits, ready: true, legacyHeroData: program.usesHeroData() ) for index, hero in game.world.heroes: