mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix empty sound (fixes #2163)
The problem was that the string is empty after going through the trim, thus the main displaying loop doesn't run, but the sound still does.
This commit is contained in:
parent
6d433fc591
commit
741c97ccc7
|
@ -581,6 +581,11 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
|
|||
|
||||
bool Highlighted = false;
|
||||
char *p = const_cast<char*>(pLine);
|
||||
|
||||
// Only empty string left
|
||||
if(*p == 0)
|
||||
return;
|
||||
|
||||
while(*p)
|
||||
{
|
||||
Highlighted = false;
|
||||
|
|
Loading…
Reference in a new issue