From c28be2f92bd76ea1bf4aa1464d4fa42df0804c75 Mon Sep 17 00:00:00 2001 From: lastbattle <4586194+lastbattle@users.noreply.github.com> Date: Tue, 23 May 2023 17:33:22 +0800 Subject: [PATCH] [HaCreator] fix map saving path issue an additional ".img" is appended to the mapId mapid = "0.img.img"; WzObject mapImage = WzInfoTools.FindMapImage(mapId, Program.WzManager); --- HaCreator/Wz/MapSaver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HaCreator/Wz/MapSaver.cs b/HaCreator/Wz/MapSaver.cs index 8010416e..06d72f4f 100644 --- a/HaCreator/Wz/MapSaver.cs +++ b/HaCreator/Wz/MapSaver.cs @@ -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)