Skip to content

Commit

Permalink
Fixed #3 - Renaming areas
Browse files Browse the repository at this point in the history
  • Loading branch information
exectails committed Jun 13, 2018
1 parent f180377 commit f661413
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Mabioned/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,11 @@ private bool SaveFile(string filePath)

try
{
// Set area file names based on currently loaded
// areas' names.
_region.AreaFileNames.Clear();
_region.AreaFileNames.AddRange(_areas.Select(a => a.Name));

using (var fs = new FileStream(filePath, FileMode.Create, FileAccess.Write))
_region.WriteTo(fs);

Expand Down

0 comments on commit f661413

Please sign in to comment.