Skip to content

Commit

Permalink
Update CharaEvent.cs
Browse files Browse the repository at this point in the history
swapped int check to front since it might be ever so slightly faster
  • Loading branch information
jalil49 committed Mar 11, 2021
1 parent 92ac408 commit 6dad53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CharaEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CharaEvent : CharaCustomFunctionController

protected override void OnReload(GameMode currentGameMode, bool MaintainState) //from KKAPI.Chara when characters enter reload state
{
ThisOutfitData = Constants.ChaDefaults.Find(x => x.FullName == ChaControl.fileParam.fullname && x.BirthDay == ChaControl.fileParam.strBirthDay && ChaControl.fileParam.personality == x.Personality);
ThisOutfitData = Constants.ChaDefaults.Find(x => ChaControl.fileParam.personality == x.Personality && x.FullName == ChaControl.fileParam.fullname && x.BirthDay == ChaControl.fileParam.strBirthDay);
if (ThisOutfitData == null)
{
//ExpandedOutfit.Logger.LogWarning($"{ChaControl.fileParam.fullname} made new default; chano {ChaControl.fileParam.strBirthDay} name {ChaControl.fileParam.personality}");
Expand Down

0 comments on commit 6dad53e

Please sign in to comment.