1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 12:39:59 +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(); 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) if (mWeight)
{ {