浏览代码

Fix issue 2320. Town events for buildings should now work

ArseniyShestakov 10 年之前
父节点
当前提交
a0a55974ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/CGameHandler.cpp

+ 1 - 1
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));