Handle AppID int overflows for GetHashCode() properly

This commit is contained in:
JustArchi
2018-02-12 09:27:18 +01:00
parent 33bfd63307
commit ea2cf23087

View File

@@ -1064,7 +1064,7 @@ namespace ArchiSteamFarm {
return obj is Game game && Equals(game);
}
public override int GetHashCode() => (int) AppID;
public override int GetHashCode() => (int) (AppID - int.MaxValue);
}
}
}