Avoid crashing labormanager if map square on lowest level is designated+hidden (#1240)

develop
Kelly Kinkade 2018-03-20 00:55:17 -05:00
parent 0e7ab27850
commit 81c9c8cdfe
1 changed files with 1 additions and 2 deletions

@ -1075,8 +1075,7 @@ private:
if (bl->designation[x][y].bits.hidden)
{
df::coord p = bl->map_pos;
df::coord c(p.x, p.y, p.z - 1);
if (Maps::getTileDesignation(c)->bits.hidden)
if (! Maps::isTileVisible(p.x, p.y, p.z-1))
continue;
}