Skip to content

Commit 38ed272

Browse files
committed
add covering default case to Maps::SortBlockEvents
temporary - replace with `case block_square_event_type::NONE` after dfhack/df-structures#2293 is merged
1 parent 97e2fc5 commit 38ed272

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

library/modules/Maps.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,9 @@ bool Maps::SortBlockEvents(df::map_block *block,
655655
if (priorities)
656656
priorities->push_back((df::block_square_event_designation_priorityst *)evt);
657657
break;
658+
default:
659+
assert("Unhandled block event type" && false); // FIXME temporary - replace with NONE case after structure are updated
660+
break;
658661
}
659662
}
660663
return true;

0 commit comments

Comments
 (0)