Skip to content

Commit

Permalink
Fix issue 2276. Refugee Camp shouldn't be guarded
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyShestakov committed Oct 16, 2015
1 parent c3c31e9 commit 3663b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mapObjects/CGTownInstance.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 3663b95

Please sign in to comment.