Shader: Fix some errors

This commit is contained in:
SirLynix
2022-03-29 08:42:08 +02:00
committed by Jérôme Leclercq
parent 1afc599e3d
commit 35f6240786
5 changed files with 62 additions and 55 deletions

View File

@@ -424,7 +424,6 @@ namespace Nz::ShaderAst
auto clone = std::make_unique<CastExpression>();
clone->targetType = Clone(node.targetType);
for (auto& expr : node.expressions)
for (std::size_t expressionIndex = 0; expressionIndex < node.expressions.size(); ++expressionIndex)
{
auto& expr = node.expressions[expressionIndex];