Fix infinite loop

develop
kaetemi 4 years ago
parent ff49b89b73
commit 7812ccafc1

@ -208,7 +208,8 @@ void CChatWindow::displayMessage(const ucstring &msg, NLMISC::CRGBA col, CChatGr
{ {
if (!_Chat) if (!_Chat)
{ {
nlwarning("<CChatWindow::displayMessage> There's no global chat"); if (msg.toUtf8() != "WRN: <CChatWindow::displayMessage> There's no global chat")
nlwarning("<CChatWindow::displayMessage> There's no global chat");
return; return;
} }
CGroupList *gl; CGroupList *gl;
@ -541,7 +542,8 @@ void CChatGroupWindow::displayMessage(const ucstring &msg, NLMISC::CRGBA col, CC
{ {
if (!_Chat) if (!_Chat)
{ {
nlwarning("<CChatGroupWindow::displayMessage> There's no global chat"); if (msg.toUtf8() != "WRN: <CChatGroupWindow::displayMessage> There's no global chat")
nlwarning("<CChatGroupWindow::displayMessage> There's no global chat");
return; return;
} }

Loading…
Cancel
Save