fix crash

This commit is contained in:
ouwou committed 2020-09-15 00:40:30 -04:00
1 parent f0ca473f6a
commit b8b47b429e
1 file changed
+3 -1
+3 -1
View File
@@ -212,7 +212,9 @@ void MemberList::UpdateMemberListInternal() {
add_role("@everyone");
for (const auto &id : roleless_users) {
add_user(discord.GetUser(id));
const auto *user = discord.GetUser(id);
if (user != nullptr)
add_user(user);
}
}