mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-29 03:26:38 +00:00 
			
		
		
		
	Merge remote-tracking branch 'capostrophic/warning'
This commit is contained in:
		
						commit
						bbb22643e8
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -2778,7 +2778,7 @@ namespace MWWorld | ||||||
|         // For AI actors, get combat targets to use in the ray cast. Only those targets will return a positive hit result.
 |         // For AI actors, get combat targets to use in the ray cast. Only those targets will return a positive hit result.
 | ||||||
|         std::vector<MWWorld::Ptr> targetActors; |         std::vector<MWWorld::Ptr> targetActors; | ||||||
|         if (!actor.isEmpty() && actor != MWMechanics::getPlayer() && !manualSpell) |         if (!actor.isEmpty() && actor != MWMechanics::getPlayer() && !manualSpell) | ||||||
|             actor.getClass().getCreatureStats(actor).getAiSequence().getCombatTargets(targetActors); |             stats.getAiSequence().getCombatTargets(targetActors); | ||||||
| 
 | 
 | ||||||
|         const float fCombatDistance = getStore().get<ESM::GameSetting>().find("fCombatDistance")->getFloat(); |         const float fCombatDistance = getStore().get<ESM::GameSetting>().find("fCombatDistance")->getFloat(); | ||||||
| 
 | 
 | ||||||
|  | @ -2801,7 +2801,6 @@ namespace MWWorld | ||||||
|                 // Actors that are targeted by this actor's Follow or Escort packages also side with them
 |                 // Actors that are targeted by this actor's Follow or Escort packages also side with them
 | ||||||
|                 if (actor != MWMechanics::getPlayer()) |                 if (actor != MWMechanics::getPlayer()) | ||||||
|                 { |                 { | ||||||
|                     const MWMechanics::CreatureStats &stats = actor.getClass().getCreatureStats(actor); |  | ||||||
|                     for (std::list<MWMechanics::AiPackage*>::const_iterator it = stats.getAiSequence().begin(); it != stats.getAiSequence().end(); ++it) |                     for (std::list<MWMechanics::AiPackage*>::const_iterator it = stats.getAiSequence().begin(); it != stats.getAiSequence().end(); ++it) | ||||||
|                     { |                     { | ||||||
|                         if ((*it)->getTypeId() == MWMechanics::AiPackage::TypeIdCast) |                         if ((*it)->getTypeId() == MWMechanics::AiPackage::TypeIdCast) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue