From 3663b952eace840ec8dbf99c6686ad21cc6b110f Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Fri, 16 Oct 2015 06:45:06 +0300 Subject: [PATCH] Fix issue 2276. Refugee Camp shouldn't be guarded --- lib/mapObjects/CGTownInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/CGTownInstance.cpp b/lib/mapObjects/CGTownInstance.cpp index b0a08a3a2..5dead32a0 100644 --- a/lib/mapObjects/CGTownInstance.cpp +++ b/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;