* apply message state to the pending state so that they are applied at the correct moment

This commit is contained in:
Sven/Sarah Barth 2024-12-29 21:52:59 +01:00
parent d335ce60dd
commit c3a6df26ee

View File

@ -3857,14 +3857,15 @@ type
end; end;
ST_LOADMESSAGES: ST_LOADMESSAGES:
begin begin
current_settings.pmessage:=nil; { free pending messages }
FreeLocalVerbosity(pendingstate.nextmessagerecord);
mesgnb:=tokenreadsizeint; mesgnb:=tokenreadsizeint;
prevmsg:=nil; prevmsg:=nil;
for i:=1 to mesgnb do for i:=1 to mesgnb do
begin begin
new(pmsg); new(pmsg);
if i=1 then if i=1 then
current_settings.pmessage:=pmsg pendingstate.nextmessagerecord:=pmsg
else else
prevmsg^.next:=pmsg; prevmsg^.next:=pmsg;
pmsg^.value:=tokenreadlongint; pmsg^.value:=tokenreadlongint;