Skip to content

Commit

Permalink
[HaCreator] fix map saving path issue
Browse files Browse the repository at this point in the history
an additional ".img" is appended to the mapId

mapid = "0.img.img";
WzObject mapImage = WzInfoTools.FindMapImage(mapId, Program.WzManager);
  • Loading branch information
lastbattle committed May 23, 2023
1 parent 68dfbbc commit c28be2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HaCreator/Wz/MapSaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void InsertImage()
{
if (board.MapInfo.mapType == MapType.RegularMap)
{
string mapId = image.Name;
string mapId = image.Name.Replace(".img", string.Empty);

WzObject mapImage = WzInfoTools.FindMapImage(mapId, Program.WzManager);
if (mapImage == null)
Expand Down

0 comments on commit c28be2f

Please sign in to comment.