1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix issue 2276. Refugee Camp shouldn't be guarded

This commit is contained in:
ArseniyShestakov 2015-10-16 06:45:06 +03:00
parent c3c31e90ff
commit 3663b952ea

View File

@ -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;