mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:26:39 +00:00 
			
		
		
		
	Use float for setting skill use values. Should resolve bug #2183.
This commit is contained in:
		
							parent
							
								
									3b5cd286f6
								
							
						
					
					
						commit
						6731afc79c
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -272,7 +272,7 @@ namespace CSMWorld
 | 
			
		|||
        {
 | 
			
		||||
            ESXRecordT record2 = record.get();
 | 
			
		||||
 | 
			
		||||
            record2.mData.mUseValue[mIndex] = data.toInt();
 | 
			
		||||
            record2.mData.mUseValue[mIndex] = data.toFloat();
 | 
			
		||||
 | 
			
		||||
            record.setModified (record2);
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -173,6 +173,8 @@ QWidget *CSVWorld::CommandDelegate::createEditor (QWidget *parent, const QStyleO
 | 
			
		|||
        {
 | 
			
		||||
            QDoubleSpinBox *dsb = new QDoubleSpinBox(parent);
 | 
			
		||||
            dsb->setRange(FLT_MIN, FLT_MAX);
 | 
			
		||||
            dsb->setSingleStep(0.01f);
 | 
			
		||||
            dsb->setDecimals(3);
 | 
			
		||||
            return dsb;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue