From 186d7515fc0672da0e089d13c55098d35a31d8b8 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 22 Apr 2022 09:55:38 +0800 Subject: [PATCH] Fix a null pointer, ryzom/ryzomcore#665 --- ryzom/client/src/interface_v3/chat_filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryzom/client/src/interface_v3/chat_filter.cpp b/ryzom/client/src/interface_v3/chat_filter.cpp index d1d6d78c29..d316f8450b 100644 --- a/ryzom/client/src/interface_v3/chat_filter.cpp +++ b/ryzom/client/src/interface_v3/chat_filter.cpp @@ -339,8 +339,8 @@ void CChatTargetFilter::setTargetPlayer(const string &targetPlayer) _TargetPlayer = targetPlayer; if (_TargetPartyChat) { - _TargetPartyChat = NULL; _TargetPartyChat->removeObserver(this); + _TargetPartyChat = NULL; } // set the prompt if (_Chat)