mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
2b12db153b
commit
4aac586dd8
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ private:
|
||||||
screen->DrawText(SmallFont2, CR_UNTRANSLATED, left + 210 * xscale, top + 8 * yscale, buff,
|
screen->DrawText(SmallFont2, CR_UNTRANSLATED, left + 210 * xscale, top + 8 * yscale, buff,
|
||||||
DTA_CleanNoMove, true, TAG_DONE);
|
DTA_CleanNoMove, true, TAG_DONE);
|
||||||
|
|
||||||
if (CPlayer->LogText != NULL)
|
if (CPlayer->LogText.IsNotEmpty())
|
||||||
{
|
{
|
||||||
FBrokenLines *lines = V_BreakLines(SmallFont2, 272, CPlayer->LogText);
|
FBrokenLines *lines = V_BreakLines(SmallFont2, 272, CPlayer->LogText);
|
||||||
for (i = 0; lines[i].Width >= 0; ++i)
|
for (i = 0; lines[i].Width >= 0; ++i)
|
||||||
|
|
Loading…
Reference in a new issue