Browse Source

Fix issue 2276. Refugee Camp shouldn't be guarded

ArseniyShestakov 10 years ago
parent
commit
3663b952ea
1 changed files with 1 additions and 1 deletions
  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;