- Fixed another erroneous FString comparison.

A comparison between an FString object and 'NULL' doesn't check for the emptiness of the examined string.
This commit is contained in:
Edoardo Prezioso 2015-01-05 23:31:02 +01:00
parent 2b12db153b
commit 4aac586dd8

View file

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