Skip to content

Commit

Permalink
Don't check for the type if it is not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Apr 6, 2024
1 parent d92492e commit 87f8821
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void ITick.Tick(Actor self)

void IOnSuccessfulTeleportRA2.OnSuccessfulTeleport(string type, WPos oldPos, WPos newPos)
{
if (Info.TeleportTypes.Contains(type))
if (Info.TeleportTypes.Count != 0 && Info.TeleportTypes.Contains(type))
GrantCondition(self, info.Condition);
}

Expand Down

0 comments on commit 87f8821

Please sign in to comment.