mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Apply suggestions from code review
Co-authored-by: Andrii Danylchenko <danilchenko.andrij@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							d74127cb84
						
					
				
				
					commit
					784f6b973b
				
			| @@ -292,10 +292,10 @@ void BattleCast::cast(ServerCallback * server, Target target) | ||||
|  | ||||
| 			if(!mirrorTargets.empty()) | ||||
| 			{ | ||||
| 				auto mirrorDesination = (*RandomGeneratorUtil::nextItem(mirrorTargets, *server->getRNG())); | ||||
| 				auto mirrorDestination = (*RandomGeneratorUtil::nextItem(mirrorTargets, *server->getRNG())); | ||||
|  | ||||
| 				Target mirrorTarget; | ||||
| 				mirrorTarget.emplace_back(mirrorDesination); | ||||
| 				mirrorTarget.emplace_back(mirrorDestination); | ||||
|  | ||||
| 				BattleCast mirror(*this, mainTarget); | ||||
| 				mirror.cast(server, mirrorTarget); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user