mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 10:55:58 -05:00
Fix Colo Starter PID Method Check (#1961)
If SIDf >> 16 != SID then temp won't be assigned.
This commit is contained in:
@@ -144,7 +144,7 @@ public static bool IsColoStarterValid(int species, ref uint seed, int TID, int S
|
||||
var SIDf = rng.Reverse(seed, rev);
|
||||
int ctr = 0;
|
||||
uint temp = 0;
|
||||
while (SIDf >> 16 != SID || (temp = rng.Prev(SIDf)) >> 16 != TID)
|
||||
while ((temp = rng.Prev(SIDf)) >> 16 != TID || SIDf >> 16 != SID)
|
||||
{
|
||||
SIDf = temp;
|
||||
if (ctr > 32) // arbitrary
|
||||
|
||||
Reference in New Issue
Block a user