diff --git a/light/ltface.cc b/light/ltface.cc index 3179082a..8967ea64 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -2094,7 +2094,8 @@ WriteLightmaps(const bsp2_t *bsp, bsp2_dface_t *face, facesup_t *facesup, const } // sort in descending order of average brightness - std::sort(sortable.begin(), sortable.end(), std::greater>()); + std::sort(sortable.begin(), sortable.end()); + std::reverse(sortable.begin(), sortable.end()); std::vector sorted; for (const auto &pair : sortable) {