diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-10-08 17:52:38 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-10-08 17:52:38 -0400 |
commit | fa1a007dc12208a90c278cb426c37c9a24079636 (patch) | |
tree | 94ce7cb7a88f6e5c3144ae5e46a5cdb776237970 /components/memberlist.cpp | |
parent | abc0a7931e64cfe3db65dd85c26d0de1be1817a0 (diff) | |
download | abaddon-portaudio-fa1a007dc12208a90c278cb426c37c9a24079636.tar.gz abaddon-portaudio-fa1a007dc12208a90c278cb426c37c9a24079636.zip |
fix unchecked optionals
also discard exceptions in file cache futures
Diffstat (limited to 'components/memberlist.cpp')
-rw-r--r-- | components/memberlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/memberlist.cpp b/components/memberlist.cpp index 804f443..ffc210b 100644 --- a/components/memberlist.cpp +++ b/components/memberlist.cpp @@ -94,7 +94,7 @@ void MemberList::SetActiveChannel(Snowflake id) { m_guild_id = Snowflake::Invalid; if (m_chan_id.IsValid()) { const auto chan = Abaddon::Get().GetDiscordClient().GetChannel(id); - if (chan.has_value()) m_guild_id = *chan->GuildID; + if (chan.has_value() && chan->GuildID.has_value()) m_guild_id = *chan->GuildID; } } |