Pārlūkot izejas kodu

Fix issue 2276. Refugee Camp shouldn't be guarded

ArseniyShestakov 10 gadi atpakaļ
vecāks
revīzija
3663b952ea
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;