Use more appropriate exception

This commit is contained in:
Archi 2021-06-21 23:58:03 +02:00
parent 2c9d131ceb
commit ff4e9aa22a
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -519,7 +519,7 @@ namespace ArchiSteamFarm.Steam.Integration {
foreach (uint gameID in uniqueValidGameIDs) {
if (request.Body.games_played.Count >= maxGamesCount) {
throw new InvalidOperationException(nameof(maxGamesCount));
throw new ArgumentOutOfRangeException(nameof(gameIDs));
}
request.Body.games_played.Add(new CMsgClientGamesPlayed.GamePlayed { game_id = new GameID(gameID) });