sapling.rb: Fix argument passing

Accidentially moved the debug argument to the Gardner invokation,
instead of leaving with the Dialogue invokation.
This commit is contained in:
Bill Niblock 2017-10-19 00:21:03 -04:00
parent bd45e60bb7
commit 54f23625a8

View file

@ -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