Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/gods_of_the_arena/lockstep.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down
2 changes: 1 addition & 1 deletion examples/gods_of_the_arena/training.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading