1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 08:15:37 +00:00

Cleanup(columnimp): Use std::clamp to limit race scaling

This commit is contained in:
Dave Corley 2024-02-15 21:25:29 -06:00
parent 54e90b4ac2
commit 54f4c69d37

View file

@ -586,7 +586,7 @@ namespace CSMWorld
{
ESXRecordT record2 = record.get();
float bodyAttr = std::max(0.5f, std::min(2.0f, data.toFloat()));
float bodyAttr = std::clamp(data.toFloat(), 0.5f, 2.0f);
if (mWeight)
{