diff --git a/UI/DiscordIntegration.cpp b/UI/DiscordIntegration.cpp index 41784abd1749..442a14b763e5 100644 --- a/UI/DiscordIntegration.cpp +++ b/UI/DiscordIntegration.cpp @@ -1,3 +1,4 @@ + #include #include @@ -39,7 +40,9 @@ static void handleDiscordError(int errCode, const char *message) { #endif Discord::~Discord() { - assert(!initialized_); + if (initialized_) { + ERROR_LOG(SYSTEM, "Discord destructor running though g_Discord.Shutdown() has not been called."); + } } bool Discord::IsEnabled() const {