Fix Colo Starter PID Method Check (#1961)

If SIDf >> 16 != SID then temp won't be assigned.
This commit is contained in:
wwwwwwzx
2018-05-24 06:00:29 -07:00
committed by Kurt
parent 6c2a864dcc
commit a25c6a4e00

View File

@@ -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