mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- fixed DHUDMessageTypeOnFadeOut with empty messages.
This commit is contained in:
parent
bfe3d251f9
commit
1e21b44db2
1 changed files with 2 additions and 2 deletions
|
@ -716,7 +716,7 @@ DHUDMessageTypeOnFadeOut::DHUDMessageTypeOnFadeOut (FFont *font, const char *tex
|
|||
if (TypeOnTime == 0.f)
|
||||
TypeOnTime = 0.1f;
|
||||
CurrLine = 0;
|
||||
LineLen = (int)Lines[0].Text.Len();
|
||||
LineLen = Lines.Size() > 0? (int)Lines[0].Text.Len() : 0;
|
||||
LineVisible = 0;
|
||||
State = 3;
|
||||
}
|
||||
|
@ -744,7 +744,7 @@ void DHUDMessageTypeOnFadeOut::Serialize(FSerializer &arc)
|
|||
|
||||
bool DHUDMessageTypeOnFadeOut::Tick ()
|
||||
{
|
||||
if (!Super::Tick ())
|
||||
if (LineLen > 0 && !Super::Tick ())
|
||||
{
|
||||
if (State == 3)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue