Skip to content

Commit

Permalink
fix map shop not saving items (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
krogenth authored Dec 30, 2023
1 parent 5e61aba commit 2492b17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/G2DataGUI.Common/Data/Maps/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ public void WriteMap()
}

writer.Seek(Header.OffsetShop, SeekOrigin.Begin);
if (Shop != null)
{
Shop.WriteMapShop(writer);
}
Shop?.WriteMapShop(writer);
}

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/G2DataGUI.Common/Data/Maps/MapShopSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static MapShopSection ReadMapShopSection(Stream reader)

public void WriteMapShopSection(Stream writer)
{

_title.WriteFixedLengthTitle(writer);
Items.WritemapShopItemList(writer);
}
}

0 comments on commit 2492b17

Please sign in to comment.