diff --git a/src/library/Syroot.Worms.Armageddon/GeneratedMap.cs b/src/library/Syroot.Worms.Armageddon/GeneratedMap.cs index 687f29b..6656497 100644 --- a/src/library/Syroot.Worms.Armageddon/GeneratedMap.cs +++ b/src/library/Syroot.Worms.Armageddon/GeneratedMap.cs @@ -57,7 +57,7 @@ namespace Syroot.Worms.Armageddon /// public void Save(Stream stream) { - using BinaryStream writer = new BinaryStream(stream, encoding: Encoding.ASCII); + using BinaryStream writer = new BinaryStream(stream, encoding: Encoding.ASCII, leaveOpen: true); writer.WriteStruct(Settings); } diff --git a/src/library/Syroot.Worms.Armageddon/LandData.cs b/src/library/Syroot.Worms.Armageddon/LandData.cs index 09dc380..d2a9364 100644 --- a/src/library/Syroot.Worms.Armageddon/LandData.cs +++ b/src/library/Syroot.Worms.Armageddon/LandData.cs @@ -129,7 +129,7 @@ namespace Syroot.Worms.Armageddon /// public void Save(Stream stream) { - using BinaryStream writer = new BinaryStream(stream, encoding: Encoding.ASCII); + using BinaryStream writer = new BinaryStream(stream, encoding: Encoding.ASCII, leaveOpen: true); // Write the header. writer.Write(_signature);