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:
def 2020-05-06 08:13:29 +02:00
parent 6d433fc591
commit 741c97ccc7

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;