From bd51bb163301c84198818bbadbbb92a1a418029e Mon Sep 17 00:00:00 2001 From: Deve Date: Tue, 12 Mar 2019 21:40:17 +0100 Subject: [PATCH] Fixed compiler warnings --- src/graphics/lod_node.cpp | 4 ++-- src/graphics/lod_node.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/graphics/lod_node.cpp b/src/graphics/lod_node.cpp index 4c91d365f..917e1d5ca 100644 --- a/src/graphics/lod_node.cpp +++ b/src/graphics/lod_node.cpp @@ -180,7 +180,7 @@ void LODNode::updateVisibility() m_current_level = getLevel(); - for (size_t i = 0; i < m_nodes.size(); i++) + for (unsigned int i = 0; i < m_nodes.size(); i++) { m_nodes[i]->setVisible(i == m_current_level); } @@ -235,7 +235,7 @@ void LODNode::autoComputeLevel(float scale) // Then we recompute the level of detail culling distance int biais = m_detail.size(); - for(int i = 0; i < m_detail.size(); i++) + for(unsigned int i = 0; i < m_detail.size(); i++) { m_detail[i] = ((step / biais) * (i + 1)); biais--; diff --git a/src/graphics/lod_node.hpp b/src/graphics/lod_node.hpp index 9f323b713..bb95cc1df 100644 --- a/src/graphics/lod_node.hpp +++ b/src/graphics/lod_node.hpp @@ -66,8 +66,8 @@ private: float m_area; // Previous level for the smooth transitions - int m_previous_level; - int m_current_level; + unsigned int m_previous_level; + unsigned int m_current_level; int m_timer;