Skip to content

Commit

Permalink
Fix regression with target attribute in OnDisconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Windows10CE committed Jan 13, 2022
1 parent d2c737e commit aa54b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PathfinderAPI/Replacements/ActionsLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static RunnableConditionalActions LoadActionSets(ElementInfo root)
case "OnDisconnect":
set.Condition = new SCOnDisconnect()
{
target = conditionInfo.Attributes.GetOrThrow("target", "No target found for OnDisconnect condition!")
target = conditionInfo.Attributes.GetOrDefault("target")
};
break;
case "DoesNotHaveFlags":
Expand Down

0 comments on commit aa54b34

Please sign in to comment.