summaryrefslogtreecommitdiff
path: root/components/channels.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-08-29 16:38:52 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-08-29 16:38:52 -0400
commit4b637b6ff20784ffde41c521be0fd7199f4a5a9b (patch)
tree2d3585f7b3c8b24d0efb99de37863881f2ab3557 /components/channels.cpp
parent713ed0f9271bfd9249809940cf214d600adaecab (diff)
downloadabaddon-portaudio-4b637b6ff20784ffde41c521be0fd7199f4a5a9b.tar.gz
abaddon-portaudio-4b637b6ff20784ffde41c521be0fd7199f4a5a9b.zip
crash fixes
Diffstat (limited to 'components/channels.cpp')
-rw-r--r--components/channels.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/channels.cpp b/components/channels.cpp
index adaa11d..b3af191 100644
--- a/components/channels.cpp
+++ b/components/channels.cpp
@@ -160,6 +160,7 @@ void ChannelList::SetListingFromGuildsInternal() {
AddPrivateChannels();
// map each category to its channels
+
std::unordered_map<Snowflake, std::vector<const ChannelData *>> cat_to_channels;
std::unordered_map<Snowflake, std::vector<const ChannelData *>> orphan_channels;
for (const auto &[gid, guild] : *guilds) {