From 90fc08a816458b4c32d3a0cd03658a4570ea160f Mon Sep 17 00:00:00 2001 From: despiegk Date: Sun, 20 Jul 2025 15:29:42 +0200 Subject: [PATCH] ... --- lib/biz/bizmodel/play.v | 3 +-- lib/core/playmacros/playmacros.v | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/biz/bizmodel/play.v b/lib/biz/bizmodel/play.v index e428c0a0..db076272 100644 --- a/lib/biz/bizmodel/play.v +++ b/lib/biz/bizmodel/play.v @@ -20,8 +20,7 @@ pub mut: reset bool } -pub fn play(args_ PlayArgs) ! { - mut args := args_ +pub fn play(args PlayArgs) ! { mut plbook := args.plbook or { playbook.new(text: args.heroscript, path: args.heroscript_path)! } diff --git a/lib/core/playmacros/playmacros.v b/lib/core/playmacros/playmacros.v index 689b17e0..a8e58358 100644 --- a/lib/core/playmacros/playmacros.v +++ b/lib/core/playmacros/playmacros.v @@ -11,7 +11,7 @@ pub fn play_actions(mut plbook playbook.PlayBook) ! { console.print_green('play actions (simulators)') farmingsimulator.play(mut plbook)! gridsimulator.play(mut plbook)! - bizmodel.play(mut plbook)! + bizmodel.play(plbook:*plbook)! } pub fn play_macro(action playbook.Action) !string {