summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Discord/src/dispatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index 243ff79fe5..1e7c6be758 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -124,7 +124,7 @@ void CDiscordProto::OnCommandChannelDeleted(const JSONNode &pRoot)
else {
CDiscordGuild *pGuild = FindGuild(guildId);
if (pGuild != nullptr) {
- db_delete_contact(pUser->si->hContact);
+ db_delete_contact(pUser->hContact);
pUser->si = nullptr;
}
}