diff --git a/ide/wresourc.pas b/ide/wresourc.pas
index 7005666a4d..b31bb34af3 100644
--- a/ide/wresourc.pas
+++ b/ide/wresourc.pas
@@ -780,6 +780,9 @@ begin
       Fail;
     End;
   MyStream:=true;
+  {$ifdef HASAMIGA}
+  Flush;
+  {$endif}
 end;
 
 constructor TResourceFile.LoadFile(AFileName: string);