Skip to content

Commit

Permalink
switch from using filename to filelocation
Browse files Browse the repository at this point in the history
  • Loading branch information
krogenth committed Dec 27, 2023
1 parent 16e161d commit cf2b373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/G2DataGUI.Common/Data/Maps/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf2b373

Please sign in to comment.