mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
fix for 8th creature
This commit is contained in:
parent
11ac768599
commit
e19194c3b8
@ -1906,12 +1906,10 @@ const CBuilding * CFortScreen::RecruitArea::getMyBuilding()
|
||||
return nullptr;
|
||||
|
||||
const CBuilding * build = town->town->buildings.at(myID);
|
||||
while (town->town->buildings.count(myID))
|
||||
{
|
||||
myID = BuildingID::getDwellingFromLevel(level, 1);
|
||||
if (town->hasBuilt(myID))
|
||||
build = town->town->buildings.at(myID);
|
||||
myID.advance(town->town->creatures.size());
|
||||
}
|
||||
|
||||
return build;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user