mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-05 08:30:18 +00:00
Handle AppID int overflows for GetHashCode() properly
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user