mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix issue 2320. Town events for buildings should now work
This commit is contained in:
		| @@ -4480,7 +4480,7 @@ void CGameHandler::handleTownEvents(CGTownInstance * town, NewTurn &n) | ||||
|  | ||||
| 			for(auto & i : ev.buildings) | ||||
| 			{ | ||||
| 				if ( town->hasBuilt(i)) | ||||
| 				if(!town->hasBuilt(i)) | ||||
| 				{ | ||||
| 					buildStructure(town->id, i, true); | ||||
| 					iw.components.push_back(Component(Component::BUILDING, town->subID, i, 0)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user