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

BindlessTest
Dave Corley 11 months ago
parent 54e90b4ac2
commit 54f4c69d37

@ -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)
{

Loading…
Cancel
Save