2164: Fix empty sound (fixes #2163) r=heinrich5991 a=def-

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. Verified that it works.

Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2020-05-06 08:48:24 +00:00 committed by GitHub
commit 295a479db5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;