Skip to content

Commit

Permalink
fix: no longer crashes if another script is called DialogueGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
ashblue committed May 14, 2020
1 parent 740386e commit 558c869
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -18,6 +18,7 @@ public class FindReplaceWindow : FindReplaceWindowBase {
foreach (var graphID in graphIDs) {
var path = AssetDatabase.GUIDToAssetPath(graphID);
var graph = AssetDatabase.LoadAssetAtPath<DialogueGraph>(path);
if (graph == null) continue;

foreach (var node in graph.Nodes) {
if (IsValid(node.Text ?? "")) {
Expand Down

0 comments on commit 558c869

Please sign in to comment.