diff --git a/src/g_statusbar/hudmessages.cpp b/src/g_statusbar/hudmessages.cpp index 33d1daacc..27ec6a34a 100644 --- a/src/g_statusbar/hudmessages.cpp +++ b/src/g_statusbar/hudmessages.cpp @@ -749,7 +749,7 @@ void DHUDMessageTypeOnFadeOut::Serialize(FSerializer &arc) bool DHUDMessageTypeOnFadeOut::Tick () { - if (!Super::Tick ()) + if (LineLen > 0 && !Super::Tick ()) { if (State == 3) { @@ -820,7 +820,7 @@ void DHUDMessageTypeOnFadeOut::ScreenSizeChanged () if (State == 3) { CurrLine = 0; - LineLen = (int)Lines[0].Text.Len(); + LineLen = Lines.Size() > 0 ? (int)Lines[0].Text.Len() : 0; Tics = (int)(charCount * TypeOnTime) - 1; Tick (); }