1
0
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:
DjWarmonger 2014-07-18 07:40:27 +02:00
parent 0763b9a758
commit eb0ea86ccb

View File

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