Browse Source

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

Sven/Sarah Barth 7 months ago
parent
commit
c3a6df26ee
1 changed files with 3 additions and 2 deletions
  1. 3 2
      compiler/scanner.pas

+ 3 - 2
compiler/scanner.pas

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