1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-27 23:37:20 +00:00

FIX(#7898): Limit scale for references TES3 values

This commit is contained in:
Dave Corley 2024-03-24 16:24:49 -05:00
parent d7257e056c
commit c59d097ab2
2 changed files with 2 additions and 1 deletions

View File

@ -160,6 +160,7 @@
Bug #7859: AutoCalc flag is not used to calculate potion value Bug #7859: AutoCalc flag is not used to calculate potion value
Bug #7872: Region sounds use wrong odds Bug #7872: Region sounds use wrong odds
Bug #7887: Editor: Mismatched reported script data size and actual data size causes a crash during save Bug #7887: Editor: Mismatched reported script data size and actual data size causes a crash during save
Bug #7898: Editor: Invalid reference scales are allowed
Feature #2566: Handle NAM9 records for manual cell references Feature #2566: Handle NAM9 records for manual cell references
Feature #3537: Shader-based water ripples Feature #3537: Shader-based water ripples
Feature #5173: Support for NiFogProperty Feature #5173: Support for NiFogProperty

View File

@ -971,7 +971,7 @@ namespace CSMWorld
void set(Record<ESXRecordT>& record, const QVariant& data) override void set(Record<ESXRecordT>& record, const QVariant& data) override
{ {
ESXRecordT record2 = record.get(); ESXRecordT record2 = record.get();
record2.mScale = data.toFloat(); record2.mScale = std::clamp(data.toFloat(), 0.5f, 2.0f);
record.setModified(record2); record.setModified(record2);
} }