diff --git a/cockatrice/src/settings/cache_settings.h b/cockatrice/src/settings/cache_settings.h index 6b0a24598..a15194b3d 100644 --- a/cockatrice/src/settings/cache_settings.h +++ b/cockatrice/src/settings/cache_settings.h @@ -292,7 +292,7 @@ public: } ReleaseChannel *getUpdateReleaseChannel() const { - return releaseChannels.at(updateReleaseChannel); + return releaseChannels.at(qMax(0, updateReleaseChannel)); } QList getUpdateReleaseChannels() const {