From a0a55974ea1f5f53b85a73c546bbd7d1ed5fcfb7 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Wed, 28 Oct 2015 08:46:43 +0300 Subject: [PATCH] Fix issue 2320. Town events for buildings should now work --- server/CGameHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 3d07cbe57..69cc7ad47 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -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));