We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84eb270 commit 02155e9Copy full SHA for 02155e9
src/building/building_house.cpp
@@ -429,6 +429,10 @@ void building_house::merge() {
429
int tile_offset = base.tile.grid_offset() + house_tile_offsets(i);
430
if (map_terrain_is(tile_offset, TERRAIN_BUILDING)) {
431
auto other_house = building_at(tile_offset)->dcast_house();
432
+ if (!other_house) {
433
+ continue;
434
+ }
435
+
436
if (other_house->id() == base.id) {
437
num_house_tiles++;
438
} else if (other_house->state() == BUILDING_STATE_VALID && other_house->runtime_data().hsize
0 commit comments