Fix signed G7TID

This commit is contained in:
Kurt 2016-11-09 20:03:49 -08:00
parent fc97d68847
commit 75aa1b2568

View file

@ -257,7 +257,7 @@ namespace PKHeX
// Derived
public virtual int SpriteItem => HeldItem;
public virtual bool IsShiny => TSV == PSV;
public int TrainerID7 => (TID | (SID << 16)) % 1000000;
public int TrainerID7 => (int)((uint)(TID | (SID << 16)) % 1000000);
public bool Gen7 => Version >= 30 && Version <= 31;
public bool Gen6 => Version >= 24 && Version <= 29;
public bool XY => Version == (int)GameVersion.X || Version == (int)GameVersion.Y;