Skip to content

Commit

Permalink
Merge pull request #1343 from canerksk/chat-crashfix
Browse files Browse the repository at this point in the history
Chat crashfix
  • Loading branch information
raydienull authored Dec 4, 2024
2 parents 172bbae + 072659f commit 29e9ddc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3960,3 +3960,6 @@ Added: 'H' shortcut for variables to get the value as hexadecimal.
NOTE;
1. If no ReflectDamage or ReduceDamage values ​​are entered, the system defaults to the Reactive Armor Effect value.
2. No damage amount can be less than 1.

4-12-2024, canerksk
- Fixed: Sphere crash troubleshooting if a player has no CHATNAME value and remove a channel
2 changes: 1 addition & 1 deletion src/game/clients/CChatChanMember.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ lpctstr CChatChanMember::GetChatName() const
ADDTOCALLSTACK("CChatChanMember::GetChatName");
const CClient *pClient = GetClientActive();

if (pClient)
if (pClient && pClient->GetAccount() && !pClient->GetAccount()->m_sChatName.IsEmpty())
return(pClient->GetAccount()->m_sChatName);
return "";
}
Expand Down

0 comments on commit 29e9ddc

Please sign in to comment.