diff --git a/src/G2DataGUI.Common/Data/Maps/Map.cs b/src/G2DataGUI.Common/Data/Maps/Map.cs index c90a45b..69c741d 100644 --- a/src/G2DataGUI.Common/Data/Maps/Map.cs +++ b/src/G2DataGUI.Common/Data/Maps/Map.cs @@ -98,12 +98,12 @@ public static Map ReadMap(FileStream reader, string filepath) public void WriteMap() { // we need the file to write to - if (Filename.Length <= 0) + if (FileLocation.Length <= 0) { return; } - using FileStream writer = File.Open(Filename, FileMode.OpenOrCreate, FileAccess.ReadWrite); + using FileStream writer = File.Open(FileLocation, FileMode.OpenOrCreate, FileAccess.ReadWrite); writer.Seek(Header.OffsetMapEntries, SeekOrigin.Begin); foreach (var entry in Entries)