minor changes

This commit is contained in:
Michele Caini
2018-06-09 21:58:49 +02:00
parent cbf18a7dc4
commit e3cb6a0aec

View File

@@ -1148,7 +1148,7 @@ public:
void each(Func func) const {
if(available) {
for(auto pos = entities.size(); pos; --pos) {
const entity_type curr = static_cast<entity_type>(pos - 1);
const auto curr = entity_type(pos - 1);
const auto entity = entities[curr];
const auto entt = entity & traits_type::entity_mask;