From ab72e0585c6bd827b470634a9d00e350e5e6b669 Mon Sep 17 00:00:00 2001 From: "n.savitchev" <n.savichev@gaijin.team> Date: Thu, 5 Dec 2024 15:49:11 +0300 Subject: [PATCH] gameLibs/bvh: simplified code for enumerate() template call --- prog/gameLibs/bvh/bvh_ri.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/gameLibs/bvh/bvh_ri.cpp b/prog/gameLibs/bvh/bvh_ri.cpp index d4f397c55..db251fc33 100644 --- a/prog/gameLibs/bvh/bvh_ri.cpp +++ b/prog/gameLibs/bvh/bvh_ri.cpp @@ -44,7 +44,7 @@ static void on_relem_changed(ContextId context_id, const RenderableInstanceLodsR bool hasBakedImpostor = resource->isBakedImpostor(); - for (auto [lodIx, lod] : enumerate(resource->lods)) + for (auto [lodIx, lod] : enumerate(make_span_const(resource->lods))) { int lastLod = hasBakedImpostor ? resource->lods.size() - 2 : resource->lods.size() - 1; if (context_id->has(Features::RIBaked) && lodIx < lastLod)