From 18f0b89ee69aa263964fd0c0af5995a86e230f17 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 18 Sep 2016 15:50:31 -0600 Subject: [PATCH] light: build fix for MSVC --- light/ltface.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {