mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
fix
This commit is contained in:
parent
e19194c3b8
commit
c36a6427c2
@ -1906,9 +1906,15 @@ const CBuilding * CFortScreen::RecruitArea::getMyBuilding()
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
const CBuilding * build = town->town->buildings.at(myID);
|
const CBuilding * build = town->town->buildings.at(myID);
|
||||||
myID = BuildingID::getDwellingFromLevel(level, 1);
|
while (town->town->buildings.count(myID))
|
||||||
if (town->hasBuilt(myID))
|
{
|
||||||
build = town->town->buildings.at(myID);
|
if (town->hasBuilt(myID))
|
||||||
|
build = town->town->buildings.at(myID);
|
||||||
|
if(myID != BuildingID::DWELL_LVL_8)
|
||||||
|
myID.advance(GameConstants::CREATURES_PER_TOWN - 1);
|
||||||
|
else
|
||||||
|
myID = BuildingID::DWELL_LVL_8_UP;
|
||||||
|
}
|
||||||
|
|
||||||
return build;
|
return build;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user