From abe627246fb4381374a44dfcbd38bfbd447b1d00 Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:24:03 +0200 Subject: [PATCH] Fix crash when clearing Twitch chat buffer --- plugins/twitch/macro-condition-twitch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/twitch/macro-condition-twitch.cpp b/plugins/twitch/macro-condition-twitch.cpp index 111410376..6cf3c7121 100644 --- a/plugins/twitch/macro-condition-twitch.cpp +++ b/plugins/twitch/macro-condition-twitch.cpp @@ -446,7 +446,7 @@ bool MacroConditionTwitch::CheckChatMessages(TwitchToken &token) message->properties.isVIP ? "true" : "false"); if (_clearBufferOnMatch) { - _eventBuffer->Clear(); + _chatBuffer->Clear(); } return true; } @@ -481,7 +481,7 @@ bool MacroConditionTwitch::CheckChatUserJoinOrLeave(TwitchToken &token) SetTempVarValue("user_login", message->source.nick); if (_clearBufferOnMatch) { - _eventBuffer->Clear(); + _chatBuffer->Clear(); } return true; }