Fix invalid dialogue sequences being appended to chat log.
This commit is contained in:
parent
304b0f1541
commit
6d1ab4c9c5
2 changed files with 4 additions and 3 deletions
|
|
@ -380,7 +380,8 @@ Class SWWMDirectMessage : HUDMessageBase
|
|||
}
|
||||
else txt = StringTable.Localize("$SWWM_"..seqname..seqnum);
|
||||
l = fnt.BreakLines(txt,220);
|
||||
// append to the player's chat log
|
||||
// append to the player's chat log (if it's valid)
|
||||
if ( (seqnum < 1) || (seqnum > seqcnt) ) return;
|
||||
let bar = SWWMStatusBar(StatusBar);
|
||||
if ( bar )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue