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;