mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 17:26:42 +00:00 
			
		
		
		
	fix "error in framelistener" when trying to pick up lights that can't be picked up
This commit is contained in:
		
							parent
							
								
									78efc31641
								
							
						
					
					
						commit
						1a5203749f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -310,6 +310,9 @@ namespace MWGui | |||
|             && (type != typeid(ESM::Potion).name())) | ||||
|             return; | ||||
| 
 | ||||
|         if (MWWorld::Class::get(object).getName(object) == "") // objects without name presented to user can never be picked up
 | ||||
|             return; | ||||
| 
 | ||||
|         // sound
 | ||||
|         std::string sound = MWWorld::Class::get(object).getUpSoundId(object); | ||||
|         MWBase::Environment::get().getSoundManager()->playSound(sound, 1, 1); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue