Commit d4494930 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed crash in std::sort due to wrong function signature of comparison function.

parent 6917b17b
...@@ -311,9 +311,9 @@ public: ...@@ -311,9 +311,9 @@ public:
pwr_tFileName name; pwr_tFileName name;
}; };
int subpalette_cmp(LocalFile p1, LocalFile p2) bool subpalette_cmp(LocalFile p1, LocalFile p2)
{ {
return strcmp(p1.name, p2.name); return strcmp(p1.name, p2.name) < 0;
} }
// //
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment