Skip to content

Commit d43de2e

Browse files
committed
Use auto type for particles nWorkers
1 parent 0f83581 commit d43de2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Layers/xrRender/ParticleEffect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ void CParticleEffect::Render(float)
587587
FVF::LIT* pv_start = (FVF::LIT*)RCache.Vertex.Lock(p_cnt * 4 * 4, geom->vb_stride, dwOffset);
588588
FVF::LIT* pv = pv_start;
589589

590-
u32 nWorkers = ttapi.threads.size();
590+
auto nWorkers = ttapi.threads.size();
591591

592592
if (p_cnt < nWorkers)
593593
nWorkers = p_cnt;

src/xrParticles/particle_actions_collection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max
17531753
if (!p_cnt)
17541754
return;
17551755

1756-
u32 nWorkers = ttapi.threads.size();
1756+
auto nWorkers = ttapi.threads.size();
17571757

17581758
if (p_cnt < nWorkers)
17591759
nWorkers = p_cnt;

0 commit comments

Comments
 (0)