mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix for Travis.
This commit is contained in:
parent
0763b9a758
commit
eb0ea86ccb
@ -1468,7 +1468,8 @@ ObjectInfo CRmgTemplateZone::getRandomObject (CMapGenerator* gen, CTreasurePileI
|
||||
{
|
||||
//objectsVisitableFromBottom++;
|
||||
//there must be free tiles under object
|
||||
if (!isAccessibleFromAnywhere(gen, oi.templ, newVisitablePos, oi.templ.getBlockedOffsets()))
|
||||
auto blockedOffsets = oi.templ.getBlockedOffsets();
|
||||
if (!isAccessibleFromAnywhere(gen, oi.templ, newVisitablePos, blockedOffsets))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user