mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	I managed to display battlefield in creature bank - before game crashed.
This commit is contained in:
		| @@ -3862,7 +3862,7 @@ void CBank::fightGuards (const CGHeroInstance * h, ui32 accept) const | ||||
| 		{ | ||||
| 			case 1: | ||||
| 				for	(int i = 1; i <= 5; i++) | ||||
| 					ourArmy.setCreature (i, bc->guards[1].first + upgraded, bc->guards[1].second  / 5 ); | ||||
| 					ourArmy.setCreature (i, bc->guards[0].first + upgraded, bc->guards[0].second  / 5 ); | ||||
| 				break; | ||||
| 			case 4: | ||||
| 			{ | ||||
|   | ||||
							
								
								
									
										2
									
								
								int3.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								int3.h
									
									
									
									
									
								
							| @@ -22,7 +22,7 @@ public: | ||||
| 	bool formation; //false - wide, true - tight | ||||
| 	bool setCreature (si32 slot, ui32 type, si32 quantity) //slots 1 to 7 | ||||
| 	{ | ||||
| 		slots.find(slot)->second = std::pair<ui32,si32>(type, quantity);  //brutal force | ||||
| 		slots[slot] = std::pair<ui32, si32>(type, quantity);  //brutal force | ||||
| 		if (slots.size() > 7) return false; | ||||
| 		else return true; | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user