浏览代码

Fix issue 2276. Refugee Camp shouldn't be guarded

ArseniyShestakov 10 年之前
父节点
当前提交
3663b952ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/mapObjects/CGTownInstance.cpp

+ 1 - 1
lib/mapObjects/CGTownInstance.cpp

@@ -184,7 +184,7 @@ void CGDwelling::updateGuards() const
 	//default condition - creatures are of level 5 or higher
 	for (auto creatureEntry : creatures)
 	{
-		if (VLC->creh->creatures[creatureEntry.second.at(0)]->level >= 5)
+		if (VLC->creh->creatures[creatureEntry.second.at(0)]->level >= 5 && ID != Obj::REFUGEE_CAMP)
 		{
 			guarded = true;
 			break;