From df0cddb35d0b7a57f4bbe94a9718164d5d184054 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 5 Jan 2018 16:26:31 +0200 Subject: [PATCH] Do not output empty conversation replies to console https://forum.zdoom.org/viewtopic.php?t=58992 --- src/p_conversation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_conversation.cpp b/src/p_conversation.cpp index a715f6a49..5d3a872a4 100644 --- a/src/p_conversation.cpp +++ b/src/p_conversation.cpp @@ -1044,7 +1044,7 @@ static void HandleReply(player_t *player, bool isconsole, int nodenum, int reply player->SetLogNumber(reply->LogNumber); } - if (replyText != NULL && isconsole) + if (nullptr != replyText && '\0' != replyText[0] && isconsole) { TerminalResponse(replyText); }