From a029177c7bd2c60e4e9662e1dc918778c90b9ee4 Mon Sep 17 00:00:00 2001 From: SFGrenade <25555417+SFGrenade@users.noreply.github.com> Date: Fri, 1 Dec 2023 22:02:09 +0100 Subject: [PATCH] fix typo --- FsmUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FsmUtil.cs b/FsmUtil.cs index e7105d0..ff5cc73 100644 --- a/FsmUtil.cs +++ b/FsmUtil.cs @@ -103,9 +103,9 @@ private static TVal[] GetItemsFromArray(TVal[] origArray, Func [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); } ///