From 54f23625a85009228b373d3a5cc59b1f7aa3a537 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Thu, 19 Oct 2017 00:21:03 -0400 Subject: [PATCH] sapling.rb: Fix argument passing Accidentially moved the debug argument to the Gardner invokation, instead of leaving with the Dialogue invokation. --- lib/sapling.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sapling.rb b/lib/sapling.rb index eef7142..901094b 100644 --- a/lib/sapling.rb +++ b/lib/sapling.rb @@ -11,8 +11,8 @@ class Sapling < Thor def read(file) puts 'Welcome to Sapling, a Dialogue Tree Utility.' exit unless verify_tree(file) - tree = Gardner::Plot.new(YAML.load_file(file), false) - speaker = Dialogue::Speaker.new(tree) + tree = Gardner::Plot.new(YAML.load_file(file)) + speaker = Dialogue::Speaker.new(tree, false) speaker.conversation end