From acef0b216f976e9f88c7db16cd74a9df702fb87d Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 3 May 2015 17:07:50 +0000 Subject: [PATCH] math: fix a refactoring blunder. --- src/lol/math/noise/simplex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lol/math/noise/simplex.h b/src/lol/math/noise/simplex.h index b005fdec..41777044 100644 --- a/src/lol/math/noise/simplex.h +++ b/src/lol/math/noise/simplex.h @@ -96,7 +96,7 @@ protected: for (int i = 0; i < N; ++i) for (int j = i + 1; j < N; ++j) if (pos[traversal_order[i]] < pos[traversal_order[j]]) - traversal_order.swap(i, j); + std::swap(traversal_order[i], traversal_order[j]); /* Get the position in world coordinates, too */