mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:56:43 +00:00 
			
		
		
		
	Removed unused var
This commit is contained in:
		
							parent
							
								
									3e31142c0b
								
							
						
					
					
						commit
						6a671186ee
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -143,7 +143,7 @@ namespace MWLua
 | 
			
		|||
                throw std::runtime_error("The argument must be a player.");
 | 
			
		||||
            return MWBase::Environment::get().getWorld()->isTeleportingEnabled();
 | 
			
		||||
        };
 | 
			
		||||
        player["setTeleportingEnabled"] = [context](const Object& player, bool state) {
 | 
			
		||||
        player["setTeleportingEnabled"] = [](const Object& player, bool state) {
 | 
			
		||||
            if (player.ptr() != MWBase::Environment::get().getWorld()->getPlayerPtr())
 | 
			
		||||
                throw std::runtime_error("The argument must be a player.");
 | 
			
		||||
            if (dynamic_cast<const LObject*>(&player) && !dynamic_cast<const SelfObject*>(&player))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue