From 479d4931d7a9ff0e513c0cca3d1c48867b860c3a Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Fri, 21 Jun 2024 20:03:52 +0300 Subject: [PATCH] Handle negative MaxNumberRipples more sensibly --- apps/openmw/mwrender/ripplesimulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/ripplesimulation.cpp b/apps/openmw/mwrender/ripplesimulation.cpp index b7661ca664..3e8a6fd2ec 100644 --- a/apps/openmw/mwrender/ripplesimulation.cpp +++ b/apps/openmw/mwrender/ripplesimulation.cpp @@ -243,7 +243,7 @@ namespace MWRender } else { - if (mMaxNumberRipples == 0) + if (mMaxNumberRipples <= 0) return; osgParticle::ParticleSystem::ScopedWriteLock lock(*mParticleSystem->getReadWriteMutex());