Skip to content

Commit

Permalink
Dialogue Runner: YarnProject.GetProgram() -> .Program
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Oct 31, 2022
1 parent 41d2bf5 commit b307dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Runtime/DialogueRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public void SetProject(YarnProject newProject)
// Register any new functions that we found as part of doing this.
ActionManager.RegisterFunctions(Dialogue.Library);

Dialogue.SetProgram(newProject.GetProgram());
Dialogue.SetProgram(newProject.Program);

if (lineProvider != null) {
lineProvider.YarnProject = newProject;
Expand All @@ -264,7 +264,7 @@ public void SetInitialVariables(bool overrideExistingValues = false)

// grabbing all the initial values from the program and inserting them into the storage
// we first need to make sure that the value isn't already set in the storage
var values = yarnProject.GetProgram().InitialValues;
var values = yarnProject.Program.InitialValues;
foreach (var pair in values)
{
if (!overrideExistingValues && VariableStorage.Contains(pair.Key))
Expand Down

0 comments on commit b307dc9

Please sign in to comment.