Fixed a problem where polyobject numbers where not sorted correctly in the editing dialogs. Fixes #690

This commit is contained in:
biwa 2022-01-22 11:06:13 +01:00
parent 910bd0fb22
commit afa09e6c64

View file

@ -31,7 +31,7 @@ namespace CodeImp.DoomBuilder.Types
ponumslist.Sort((a, b) => -1 * a.CompareTo(b)); ponumslist.Sort((a, b) => -1 * a.CompareTo(b));
// Create enum items // Create enum items
foreach(int ponum in ponums) foreach(int ponum in ponumslist)
polist.Add(new EnumItem(ponum.ToString(), ponum.ToString())); polist.Add(new EnumItem(ponum.ToString(), ponum.ToString()));
return polist; return polist;