From a34eda625069763b01ba080079bf3f1252e872d1 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 24 May 2015 21:17:09 +0200 Subject: [PATCH] Simple optimization. --- include/PolyVox/PagedVolumeSampler.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/PolyVox/PagedVolumeSampler.inl b/include/PolyVox/PagedVolumeSampler.inl index 8a1f7a83..511f37d3 100644 --- a/include/PolyVox/PagedVolumeSampler.inl +++ b/include/PolyVox/PagedVolumeSampler.inl @@ -97,7 +97,7 @@ namespace PolyVox template VoxelType PagedVolume::Sampler::getVoxel(void) const { - return this->mVolume->getVoxel(this->mXPosInVolume, this->mYPosInVolume, this->mZPosInVolume); + return *mCurrentVoxel; } template