diff --git a/plugins/blueprint.cpp b/plugins/blueprint.cpp index 9d788a076..f460cdb40 100644 --- a/plugins/blueprint.cpp +++ b/plugins/blueprint.cpp @@ -81,7 +81,8 @@ pair get_building_size(df::building* b) char get_tile_dig(int32_t x, int32_t y, int32_t z) { - df::tiletype_shape ts = tileShape(*Maps::getTileType(x, y , z)); + df::tiletype *tt = Maps::getTileType(x, y , z); + df::tiletype_shape ts = tileShape(tt ? *tt : tiletype::Void); switch (ts) { case tiletype_shape::EMPTY: