Skip to content

Commit

Permalink
Handle negative MaxNumberRipples more sensibly
Browse files Browse the repository at this point in the history
  • Loading branch information
Capostrophic committed Jun 21, 2024
1 parent 82285da commit 479d493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwrender/ripplesimulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ namespace MWRender
}
else
{
if (mMaxNumberRipples == 0)
if (mMaxNumberRipples <= 0)
return;

osgParticle::ParticleSystem::ScopedWriteLock lock(*mParticleSystem->getReadWriteMutex());
Expand Down

0 comments on commit 479d493

Please sign in to comment.