From 25bef70d8b26acaef9fc29e3f909b9591006c9e2 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Mon, 6 Feb 2012 23:40:27 +0000 Subject: [PATCH] GCC compile fixes --- library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h | 1 + library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.inl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h b/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h index 572cb0f1..fa845144 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h +++ b/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.h @@ -28,6 +28,7 @@ freely, subject to the following restrictions: #include "PolyVoxImpl/TypeDef.h" #include "PolyVoxCore/Array.h" +#include "PolyVoxCore/Voxel.h" #include #include //For runtime_error diff --git a/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.inl b/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.inl index 9d9a0beb..c7084341 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/AStarPathfinder.inl @@ -41,7 +41,7 @@ namespace PolyVox { //and if their density is above the threshold. VoxelType voxel = volData->getVoxelAt(v3dPos); - VoxelType::DensityType tThreshold = (VoxelTypeTraits::minDensity() + VoxelTypeTraits::maxDensity()) / 2; + typename VoxelType::DensityType tThreshold = (VoxelTypeTraits::minDensity() + VoxelTypeTraits::maxDensity()) / 2; if(voxel.getDensity() >= tThreshold) { return false;