mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-15 15:26:38 +00:00
Cleanup(columnimp): Use std::clamp to limit race scaling
This commit is contained in:
parent
54e90b4ac2
commit
54f4c69d37
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue