From 6d23f0c451c544d2ee79f1c008abe265b7dd8d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Fri, 1 Apr 2022 21:29:46 +0200 Subject: [PATCH] Fix local variable name --- src/game/client/components/chat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 848f7dd413..78337d2118 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -1582,8 +1582,8 @@ void CChat::Com_Mute(IConsole::IResult *pResult, void *pContext) int TargetID = pChatData->m_pClient->GetClientID(pResult->GetString(0)); if(TargetID != -1) { - bool isMuted = pChatData->m_pClient->m_aClients[TargetID].m_ChatIgnore; - if(isMuted) + bool IsMuted = pChatData->m_pClient->m_aClients[TargetID].m_ChatIgnore; + if(IsMuted) pChatData->m_pClient->Blacklist()->RemoveIgnoredPlayer(pChatData->m_pClient->m_aClients[TargetID].m_aName, pChatData->m_pClient->m_aClients[TargetID].m_aClan); else pChatData->m_pClient->Blacklist()->AddIgnoredPlayer(pChatData->m_pClient->m_aClients[TargetID].m_aName, pChatData->m_pClient->m_aClients[TargetID].m_aClan); @@ -1592,7 +1592,7 @@ void CChat::Com_Mute(IConsole::IResult *pResult, void *pContext) pChatData->ClearInput(); char aMsg[128]; - str_format(aMsg, sizeof(aMsg), !isMuted ? Localize("'%s' was muted") : Localize("'%s' was unmuted"), pChatData->m_pClient->m_aClients[TargetID].m_aName); + str_format(aMsg, sizeof(aMsg), !IsMuted ? Localize("'%s' was muted") : Localize("'%s' was unmuted"), pChatData->m_pClient->m_aClients[TargetID].m_aName); pChatData->AddLine(aMsg, CLIENT_MSG, CHAT_ALL); } pChatData->Disable();