Fix invalid dialogue sequences being appended to chat log.

This commit is contained in:
Mari the Deer 2021-09-20 19:41:51 +02:00
commit 6d1ab4c9c5
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.1.4 \cu(Mon 20 Sep 19:23:59 CEST 2021)\c-";
SWWM_SHORTVER="\cw1.1.4 \cu(2021-09-20 19:23:59)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.1.5 \cu(Mon 20 Sep 19:42:08 CEST 2021)\c-";
SWWM_SHORTVER="\cw1.1.5 \cu(2021-09-20 19:42:08)\c-";

View file

@ -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 )
{