diff --git a/include/FastNoise/Generators/Modifiers.inl b/include/FastNoise/Generators/Modifiers.inl index c5e0f33..9540a0a 100644 --- a/include/FastNoise/Generators/Modifiers.inl +++ b/include/FastNoise/Generators/Modifiers.inl @@ -24,12 +24,12 @@ class FS_T : public virtual FastNoise::DomainOffset template FS_INLINE float32v GenT( int32v seed, P... pos ) const { - return [this, seed]( std::remove_reference_t

... sourcePos, std::remove_reference_t

... offset ) + return [self = this, seed]( std::remove_reference_t

... sourcePos, std::remove_reference_t

... offset ) { size_t idx = 0; - ((offset += this->GetSourceValue( mOffset[idx++], seed, sourcePos... )), ...); + ((offset += self->GetSourceValue( self->mOffset[idx++], seed, sourcePos... )), ...); - return this->GetSourceValue( mSource, seed, offset... ); + return self->GetSourceValue( self->mSource, seed, offset... ); } (pos..., pos...); } };