mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
prevent crash
This commit is contained in:
parent
a822ebc16a
commit
54ab0ea4aa
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ public:
|
||||||
}
|
}
|
||||||
ReleaseChannel *getUpdateReleaseChannel() const
|
ReleaseChannel *getUpdateReleaseChannel() const
|
||||||
{
|
{
|
||||||
return releaseChannels.at(updateReleaseChannel);
|
return releaseChannels.at(qMax(0, updateReleaseChannel));
|
||||||
}
|
}
|
||||||
QList<ReleaseChannel *> getUpdateReleaseChannels() const
|
QList<ReleaseChannel *> getUpdateReleaseChannels() const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue