From 4aac586dd8c4b5782a8cfa76e8e94d9082c1ccd8 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Mon, 5 Jan 2015 23:31:02 +0100 Subject: [PATCH] - Fixed another erroneous FString comparison. A comparison between an FString object and 'NULL' doesn't check for the emptiness of the examined string. --- src/g_strife/strife_sbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_strife/strife_sbar.cpp b/src/g_strife/strife_sbar.cpp index 89659e61d..b69222d36 100644 --- a/src/g_strife/strife_sbar.cpp +++ b/src/g_strife/strife_sbar.cpp @@ -601,7 +601,7 @@ private: screen->DrawText(SmallFont2, CR_UNTRANSLATED, left + 210 * xscale, top + 8 * yscale, buff, DTA_CleanNoMove, true, TAG_DONE); - if (CPlayer->LogText != NULL) + if (CPlayer->LogText.IsNotEmpty()) { FBrokenLines *lines = V_BreakLines(SmallFont2, 272, CPlayer->LogText); for (i = 0; lines[i].Width >= 0; ++i)