mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Use more optimized index find
This commit is contained in:
parent
3526c37f1e
commit
a0f2aded02
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ namespace PKHeX.Core
|
|||
var permit = pk8.PersonalInfo.TMHM;
|
||||
foreach (var m in moves)
|
||||
{
|
||||
var index = Array.FindIndex(Legal.TMHM_SWSH, 100, z => z == m);
|
||||
var index = Array.IndexOf(Legal.TMHM_SWSH, m, 100);
|
||||
if (index < 100)
|
||||
continue;
|
||||
if (permit[index])
|
||||
|
|
Loading…
Reference in a new issue