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:
parent
c3c31e90ff
commit
3663b952ea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user