mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Proper fix for http://bugs.vcmi.eu/view.php?id=2422
This commit is contained in:
		| @@ -430,7 +430,7 @@ void ObstacleMechanics::applyBattleEffects(const SpellCastEnvironment * env, con | ||||
| 			for(int i = 0; i < GameConstants::BFIELD_SIZE; i += 1) | ||||
| 			{ | ||||
| 				BattleHex hex = i; | ||||
| 				if(!(parameters.cb->battleGetStackByPos(hex, false)) && !(parameters.cb->battleGetObstacleOnPos(hex, false))) | ||||
| 				if(hex.getX() > 0 && hex.getX() < 16 && !(parameters.cb->battleGetStackByPos(hex, false)) && !(parameters.cb->battleGetObstacleOnPos(hex, false))) | ||||
| 					availableTiles.push_back(hex); | ||||
| 			} | ||||
| 			boost::range::random_shuffle(availableTiles); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user