mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed DHUDMessageTypeOnFadeOut with empty messages.
This commit is contained in:
parent
f907bb0484
commit
3d9dce0156
1 changed files with 2 additions and 2 deletions
|
@ -713,7 +713,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;
|
||||
}
|
||||
|
@ -741,7 +741,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