From f2cbb5306b68c50a7796da7af0daf9290641b587 Mon Sep 17 00:00:00 2001 From: Nick Lange Date: Thu, 22 Feb 2018 04:08:36 -0800 Subject: [PATCH] Fix MSVC 2017 warning C4458 (#43) Fix MSVC 2017 warning C4458. --- src/entt/entity/sparse_set.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index 173a90644..196faa118 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/src/entt/entity/sparse_set.hpp @@ -614,11 +614,11 @@ public: auto to = other.end(); pos_type pos = underlying_type::size() - 1; - const auto *direct = underlying_type::data(); + const auto *local = underlying_type::data(); while(pos > 0 && from != to) { if(underlying_type::has(*from)) { - if(*from != *(direct + pos)) { + if(*from != *(local + pos)) { auto candidate = underlying_type::get(*from); std::swap(instances[pos], instances[candidate]); underlying_type::swap(pos, candidate);