mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-29 03:26:38 +00:00 
			
		
		
		
	Do not soul trap creatures without a soul (which apparently exist)
This commit is contained in:
		
							parent
							
								
									149d77dedf
								
							
						
					
					
						commit
						3dcb292bc1
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -131,6 +131,8 @@ namespace MWMechanics | ||||||
|             static const float fSoulgemMult = world->getStore().get<ESM::GameSetting>().find("fSoulgemMult")->getFloat(); |             static const float fSoulgemMult = world->getStore().get<ESM::GameSetting>().find("fSoulgemMult")->getFloat(); | ||||||
| 
 | 
 | ||||||
|             float creatureSoulValue = mCreature.get<ESM::Creature>()->mBase->mData.mSoul; |             float creatureSoulValue = mCreature.get<ESM::Creature>()->mBase->mData.mSoul; | ||||||
|  |             if (creatureSoulValue == 0) | ||||||
|  |                 return; | ||||||
| 
 | 
 | ||||||
|             // Use the smallest soulgem that is large enough to hold the soul
 |             // Use the smallest soulgem that is large enough to hold the soul
 | ||||||
|             MWWorld::ContainerStore& container = caster.getClass().getContainerStore(caster); |             MWWorld::ContainerStore& container = caster.getClass().getContainerStore(caster); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue