mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-19 23:08:34 +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;
|
var permit = pk8.PersonalInfo.TMHM;
|
||||||
foreach (var m in moves)
|
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)
|
if (index < 100)
|
||||||
continue;
|
continue;
|
||||||
if (permit[index])
|
if (permit[index])
|
||||||
|
|
Loading…
Add table
Reference in a new issue