Skip to content

Commit

Permalink
[MapleLib] Sort WzSubProperty in WzSubProperty by its name during the…
Browse files Browse the repository at this point in the history
… saving process also

for field footholds saved with HaCreator
see: #173
  • Loading branch information
lastbattle committed Oct 31, 2022
1 parent a5760d4 commit 91cc533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MapleLib/WzLib/WzProperties/WzSubProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ public override void WriteValue(WzBinaryWriter writer)
{
if (img1 == null)
return 0;
else if (img1.GetType() == typeof(WzCanvasProperty))
else if (img1.GetType() == typeof(WzCanvasProperty) || // frames
img1.GetType() == typeof(WzSubProperty)) // footholds
{
int nodeId1, nodeId2;
if (int.TryParse(img1.Name, out nodeId1) && int.TryParse(img2.Name, out nodeId2))
Expand Down

0 comments on commit 91cc533

Please sign in to comment.