Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SFGrenade committed Dec 1, 2023
1 parent 69158e6 commit a029177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FsmUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ private static TVal[] GetItemsFromArray<TVal>(TVal[] origArray, Func<TVal, bool>
[PublicAPI]
public static FsmState GetFsmState(this PlayMakerFSM fsm, string stateName)
{
int fsmNameCount = fsmName.Length;
int stateNameCount = stateName.Length;
// length check first because unity's framework472 is trash and doesn't do it itself
return GetItemFromArray(fsm.FsmStates, x => x.Name.Length == fsmNameCount && x.Name == stateName);
return GetItemFromArray(fsm.FsmStates, x => x.Name.Length == stateNameCount && x.Name == stateName);
}

/// <summary>
Expand Down

0 comments on commit a029177

Please sign in to comment.