Never use the wrong type in SortStructuredList()
Posted: Wed May 19, 2021 10:40 pm
Changed some variable type from Long to Unicode, but forgot to change the type in a call to SortStructuredList.
It took me hours to figure out what was wrong. Lots of "Am I going crazy here?" 
Code: Select all
;DrawingOrder was Long but now is Unicode
;I should have changed #PB_long to #PB_Unicode bellow
SortStructuredList(Drawables(), #PB_Sort_Ascending, OffsetOf(TDrawable\DrawingOrder), #PB_Long);